Implicit receiver smart casts implementation and highlighting

This commit is contained in:
Mikhail Glukhikh
2015-11-09 15:18:37 +03:00
parent 03287d5d66
commit 811ba8110f
17 changed files with 175 additions and 8 deletions
@@ -0,0 +1,15 @@
open class SuperFoo {
public fun bar(): String {
if (this is Foo) {
<!DEBUG_INFO_IMPLICIT_RECEIVER_SMARTCAST!>superFoo<!>()
return baz()
}
return baz()
}
public fun baz() = "OK"
}
class Foo : SuperFoo() {
public fun superFoo() {}
}