Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/thisWithCustomLabel.fir.kt
T
2021-12-02 20:24:13 +03:00

22 lines
648 B
Kotlin
Vendored

class A<T>(val a: T)
class B(val b: Any)
class C(val c: Any)
context(labelAInt@A<Int>, A<String>, labelB@B) fun f() {
this<!UNRESOLVED_LABEL!>@labelAInt<!>.a.toFloat()
this<!UNRESOLVED_LABEL!>@A<!>.a.length
this<!UNRESOLVED_LABEL!>@labelB<!>.b
this<!UNRESOLVED_LABEL!>@B<!>
}
context(labelAInt@A<Int>, A<String>, labelB@B) val C.p: Int
get() {
this<!UNRESOLVED_LABEL!>@labelAInt<!>.a.toFloat()
this<!UNRESOLVED_LABEL!>@A<!>.a.length
this<!UNRESOLVED_LABEL!>@B<!>
this<!UNRESOLVED_LABEL!>@labelB<!>.b
this<!UNRESOLVED_LABEL!>@C<!>.c
this@p.c
this.c
return 1
}