Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/noBackingField.fir.kt
T

18 lines
185 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
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() = a() + b()