Kotlin K2: No code suggestions for 'unresolved reference', local var to class property
已回答
Using Idea CE: Build #IC-241.14494.240, Kotlin Plugin: K2 Kotlin Mode (Alpha).
Previously, if I wanted to make a local var global, I'd remove the ‘val’ or ‘var’ preceeding its declaration, hover over the variable, and would get code suggestions, including one to make the var a class property.
Now, I only get an ‘unresolved reference’ error, without any code suggestion.
Is this is a bug in the K2 compiler?
请先登录再写评论。
There is a ticket regarding implementation of these quickfixes for K2 IDE: https://youtrack.jetbrains.com/issue/KTIJ-27218/K2-IDE-Implement-create-callable-declaration-from-unresolved-error-usage-quickfix
Thank you!