[FE] Do not change original semantics in LabelResolver

This commit is contained in:
Anastasiya Shadrina
2021-11-22 15:00:25 +07:00
committed by TeamCityServer
parent 5d76f979cf
commit 2b30c1eb5d
8 changed files with 95 additions and 3 deletions
@@ -0,0 +1,27 @@
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<!>
}
}
@@ -0,0 +1,27 @@
fun Int.f() {
this<!UNRESOLVED_REFERENCE!>@Int<!>
}
var Int.p: Int
get() {
this<!UNRESOLVED_REFERENCE!>@Int<!>
return<!UNRESOLVED_REFERENCE!>@p<!> 42
}
set(value) {
this<!UNRESOLVED_REFERENCE!>@Int<!>
}
class X {
var Int.p: Int
get() {
this<!UNRESOLVED_REFERENCE!>@Int<!>
return<!UNRESOLVED_REFERENCE!>@p<!> 42
}
set(value) {
this<!UNRESOLVED_REFERENCE!>@Int<!>
}
fun Int.f() {
this<!UNRESOLVED_REFERENCE!>@Int<!>
}
}
@@ -0,0 +1,13 @@
package
public var kotlin.Int.p: kotlin.Int
public fun kotlin.Int.f(): kotlin.Unit
public final class X {
public constructor X()
public final var kotlin.Int.p: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
public final fun kotlin.Int.f(): kotlin.Unit
}