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?

0

请先登录再写评论。