[Parser] Do not support local contextual declarations

This commit is contained in:
Anastasiya Shadrina
2021-12-03 21:39:22 +07:00
committed by teamcity
parent 4fd61ad1b0
commit 4d3035e2f7
22 changed files with 48 additions and 336 deletions
@@ -1,15 +0,0 @@
// !LANGUAGE: +ContextReceivers
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_FIR: JVM_IR
interface A {
val ok get() = "OK"
}
class B : A
fun box(): String {
context(A) fun result() = ok
return with(B()) {
result()
}
}