Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/noBackingField.fir.kt
T
2021-12-02 20:23:51 +03:00

15 lines
205 B
Kotlin
Vendored

interface A {
fun a(): Int
}
interface B {
fun b(): Int
}
context(A)
val a = 1
context(A, B)
var b = 2
context(A, B)
val c get() = <!UNRESOLVED_REFERENCE!>a<!>() + <!UNRESOLVED_REFERENCE!>b<!>()