[K2] Disappeared UNSUPPORTED_FEATURE (2)

Added a check for the enabled context receivers feature flag for declaration.

^KT-59913
This commit is contained in:
Anastasia.Nekrasova
2023-11-07 14:55:40 +02:00
committed by Space Team
parent 685c8e4fe7
commit c04767f1f4
8 changed files with 109 additions and 10 deletions
@@ -3,11 +3,11 @@ fun List<Int>.f() {
this@List.size
}
context(String)
<!UNSUPPORTED_FEATURE!>context(String)<!>
fun Int.f() {
this@String.length
this@Int.toDouble()
}
context(String)
<!UNSUPPORTED_FEATURE!>context(String)<!>
val p: String get() = this@String