mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
16 lines
283 B
Kotlin
Vendored
16 lines
283 B
Kotlin
Vendored
// KT-338 Support.smartcasts in nested declarations
|
|
|
|
fun f(a: Any?) {
|
|
if (a is B) {
|
|
class C : X(<!DEBUG_INFO_SMARTCAST!>a<!>) {
|
|
init {
|
|
<!DEBUG_INFO_SMARTCAST!>a<!>.foo()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
interface B {
|
|
fun foo() {}
|
|
}
|
|
open class X(<!UNUSED_PARAMETER!>b<!>: B) |