[Parser] Do not support local contextual declarations
This commit is contained in:
committed by
teamcity
parent
4fd61ad1b0
commit
4d3035e2f7
-15
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user