fb43e53ca3
- KTIJ-24574 occurred because a local destructuring declaration was erroneously returned as the non-local containing declaration of an element by `getNonLocalContainingOrThisDeclaration`. This occurred in `init` blocks. KTIJ-24574 fixed
12 lines
245 B
Kotlin
Vendored
12 lines
245 B
Kotlin
Vendored
var x: Any = 2
|
|
|
|
class Test {
|
|
init {
|
|
val (type, entityName) = when {
|
|
x is Int -> Int::class.java to "Int"
|
|
<caret>x is String -> String::class.java to "String"
|
|
else -> null to null
|
|
}
|
|
}
|
|
}
|