FE 1.0: implement typed this label resolve warning for KT-51433
#KT-51433 Fixed
This commit is contained in:
+14
@@ -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<!>
|
||||
}
|
||||
Reference in New Issue
Block a user