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() {
<!NO_THIS!>this@foo<!>
this<!LABEL_RESOLVE_WILL_CHANGE("class Some; function foo context receiver")!>@Some<!>
this@String
}
context(Some)
val self: Some
get() = this<!LABEL_RESOLVE_WILL_CHANGE("class Some; property self context receiver")!>@Some<!>
}