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