Create From Usage: Do not generate type for local variables, but add dummy initializer instead
#KT-6705 Fixed
This commit is contained in:
-1
@@ -1,6 +1,5 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
// ACTION: Create parameter 'foo'
|
||||
// ERROR: Variable 'foo' must be initialized
|
||||
|
||||
fun test(n: Int) {
|
||||
val f: (Int, Int) -> Int = { (a, b) -> <caret>foo }
|
||||
|
||||
Reference in New Issue
Block a user