Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/labelClashesWithContextReceivers.fir.kt
T
2022-03-09 15:19:27 +00:00

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
}