Files
kotlin/compiler/testData/codegen/bytecodeText/falseSmartCast.kt
Mikhail Glukhikh 0d35033106 Introduction of CastedClassReceiver and its handling in codegen #KT-6744 Fixed
ClassReceiver converted to Kotlin
Also #KT-7617 Fixed
2015-11-10 20:20:51 +03:00

15 lines
236 B
Kotlin
Vendored

open class SuperFoo {
public fun bar() {
if (this is Foo) {
baz()
}
}
public fun baz() {}
}
class Foo : SuperFoo()
// 0 INVOKEVIRTUAL SuperFoo.baz
// 1 CHECKCAST Foo
// 1 INVOKEVIRTUAL Foo.baz