Implicit receiver smart casts implementation and highlighting
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
Reference in New Issue
Block a user