Skip to content

Fix methods with non-null operator not being detected as methods#1280

Merged
Perryvw merged 2 commits intomasterfrom
non-null-method
May 31, 2022
Merged

Fix methods with non-null operator not being detected as methods#1280
Perryvw merged 2 commits intomasterfrom
non-null-method

Conversation

@Perryvw
Copy link
Member

@Perryvw Perryvw commented May 30, 2022

obj.method!() was not being detected as method call because obj.method! is not a property access expression. Fixed it by unwrapping the called expression when handling call expressions.

Fixes #1266

@Perryvw Perryvw requested review from lolleko and tomblind May 30, 2022 20:29
@Perryvw Perryvw merged commit 71fb85e into master May 31, 2022
@Perryvw Perryvw deleted the non-null-method branch May 31, 2022 13:03
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.

Using non-null assertion assertion removes this parameter

3 participants