FE 1.0: implement typed this label resolve warning for KT-51433

#KT-51433 Fixed
This commit is contained in:
Mikhail Glukhikh
2022-02-22 12:23:20 +03:00
committed by Space
parent b5e2c492c6
commit 14eec6cfc0
9 changed files with 89 additions and 12 deletions
@@ -0,0 +1,14 @@
// !LANGUAGE: +ContextReceivers
class Some {
context(Some, String)
fun foo() {
this<!UNRESOLVED_LABEL!>@foo<!>
this@Some
this<!UNRESOLVED_LABEL!>@String<!>
}
context(Some)
val self: Some
get() = this@Some
}