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