Introduction of CastedClassReceiver and its handling in codegen #KT-6744 Fixed

ClassReceiver converted to Kotlin
Also #KT-7617 Fixed
This commit is contained in:
Mikhail Glukhikh
2015-11-10 16:27:58 +03:00
parent e1134b278c
commit 0d35033106
15 changed files with 219 additions and 58 deletions

View File

@@ -0,0 +1,15 @@
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