14eec6cfc0
#KT-51433 Fixed
15 lines
261 B
Kotlin
Vendored
15 lines
261 B
Kotlin
Vendored
// !LANGUAGE: +ContextReceivers
|
|
|
|
class Some {
|
|
context(Some, String)
|
|
fun foo() {
|
|
this<!UNRESOLVED_LABEL!>@foo<!>
|
|
this@Some
|
|
this<!UNRESOLVED_LABEL!>@String<!>
|
|
}
|
|
|
|
context(Some)
|
|
val self: Some
|
|
get() = this@Some
|
|
}
|