[Bug]: TypeScript annotation that contains the name of the annotated class method changes final output #16375
Labels
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Input code
REPL link
Current and expected behavior
This is a class method called
transaction
that has a parameter calledcallback
, which has the following type annotationnote that the parameter in the TypeScript annotation is called
transaction
, like the name of the method the parameter is defined for.The TypeScript annotation should not affect how the code is compiled but what I've noticed is that the output is much different when the annotation contains the name of the method. When thats the case it outputs:
but if you were to remove the annotation or rename the parameter like
then the output is much simpler, skipping the wrapping function that writes
toString
for whatever reasonEnvironment
See: the REPL link
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: