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

22 lines
215 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +ContextReceivers
class A {
fun h1() {}
}
class B {
fun h2() {}
}
fun B.foo() {
<!UNRESOLVED_REFERENCE!>h1<!>()
h2()
}
context(A)
fun B.bar() {
h1()
h2()
}