[FIR] Forbid typeRef-named labels without +ContextReceivers
^KT-63068 Fixed
This commit is contained in:
committed by
Space Team
parent
e7a3cd638e
commit
427c067cd8
+6
-6
@@ -1,28 +1,28 @@
|
||||
// ISSUE: KT-63068
|
||||
fun Int.f() {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
}
|
||||
|
||||
var Int.p: Int
|
||||
get() {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
<!RETURN_NOT_ALLOWED!>return@p<!> 42
|
||||
}
|
||||
set(value) {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
}
|
||||
|
||||
class X {
|
||||
var Int.p: Int
|
||||
get() {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
<!RETURN_NOT_ALLOWED!>return@p<!> 42
|
||||
}
|
||||
set(value) {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
}
|
||||
|
||||
fun Int.f() {
|
||||
this@Int
|
||||
this<!UNRESOLVED_LABEL!>@Int<!>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user