Skip to content

Fix type of "this" parameter in generic method body#48

Open
fcurdi wants to merge 1 commit intoedgardozoppi:metadata-providerfrom
fcurdi:fix/this_parameter_generic_type
Open

Fix type of "this" parameter in generic method body#48
fcurdi wants to merge 1 commit intoedgardozoppi:metadata-providerfrom
fcurdi:fix/this_parameter_generic_type

Conversation

@fcurdi
Copy link
Copy Markdown

@fcurdi fcurdi commented Aug 23, 2020

When extracting a method, the field Parameters contains the this parameter if it is not static, but its type is the generic method (not instantiated). This is changed to the the instantiation of that method with its generic parameters. This means that if a method is within a type SomeType that has generic parameter T, in the method body this should be of that type but instantiated with the generic parameter T.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants