Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/noLabelsByClassName.fir.kt
T
2023-11-22 13:22:45 +00:00

29 lines
544 B
Kotlin
Vendored

// ISSUE: KT-63068
fun Int.f() {
this<!UNRESOLVED_LABEL!>@Int<!>
}
var Int.p: Int
get() {
this<!UNRESOLVED_LABEL!>@Int<!>
<!RETURN_NOT_ALLOWED!>return@p<!> 42
}
set(value) {
this<!UNRESOLVED_LABEL!>@Int<!>
}
class X {
var Int.p: Int
get() {
this<!UNRESOLVED_LABEL!>@Int<!>
<!RETURN_NOT_ALLOWED!>return@p<!> 42
}
set(value) {
this<!UNRESOLVED_LABEL!>@Int<!>
}
fun Int.f() {
this<!UNRESOLVED_LABEL!>@Int<!>
}
}