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

12 lines
263 B
Kotlin
Vendored

fun List<Int>.f() {
this<!UNRESOLVED_LABEL!>@List<!>.size
}
context(String)
fun Int.f() {
this<!UNRESOLVED_LABEL!>@String<!>.length
this<!UNRESOLVED_LABEL!>@Int<!>.toDouble()
}
context(String)
val p: String get() = this<!UNRESOLVED_LABEL!>@String<!>