Create From Usage: Quick-fix for local variables
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
// ERROR: Variable 'foo' must be initialized
|
||||
|
||||
fun test(n: Int): Int {
|
||||
return when (n) {
|
||||
1 -> {
|
||||
<caret>foo
|
||||
}
|
||||
else -> {
|
||||
n + 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user