intellij-community icon indicating copy to clipboard operation
intellij-community copied to clipboard

KTIJ-19745 False positive "Redundant 'suspend' modifier" with suspend lambda in constructor whish is used inside suspend method

Open t-kameyama opened this issue 3 years ago • 4 comments

https://youtrack.jetbrains.com/issue/KTIJ-19745

t-kameyama avatar Dec 26 '21 05:12 t-kameyama

Please, run the inspection on the entire intellij-community project (how to run the inspection on the entire project) and either fix all the warnings introduced by the inspection (in separate commit but in this PR) or share your results as a comment.

nikitabobko avatar Jan 07 '22 15:01 nikitabobko

I ran the Redundant 'suspend' modifier inspection on the entire intellij-community and found a warning in the android project.

スクリーンショット 2022-01-11 9 48 59

t-kameyama avatar Jan 11 '22 00:01 t-kameyama

It seems that this issue has been resolved by 52a8d75c2cf545bee87579a8856249fc5847921e. This PR just adds a test for the issue.

t-kameyama avatar Mar 30 '22 05:03 t-kameyama

cc @yanex ^

nikitabobko avatar Mar 30 '22 11:03 nikitabobko

Added IGNORE_FE10_BINDING_BY_FIR to the test.

t-kameyama avatar Jun 05 '23 08:06 t-kameyama