Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/smartcasts/kt37327.kt
T
2020-03-19 09:51:01 +03:00

14 lines
178 B
Kotlin
Vendored

// ISSUE: KT-37327
interface Q
sealed class A : Q
class B(val x: Int) : A()
fun Q.foo() {
if (this !is A) return
when (this) {
is B -> x // unresolved
}
}