[FE] Report ambiguity when label can refer to multiple receivers

This commit is contained in:
Anastasiya Shadrina
2021-11-07 19:31:35 +07:00
committed by TeamCityServer
parent fd7d000138
commit ac27fda965
18 changed files with 164 additions and 39 deletions
@@ -0,0 +1,12 @@
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<!>