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

19 lines
192 B
Kotlin
Vendored

class A {
fun h1() {}
}
class B {
fun h2() {}
}
fun B.foo() {
<!UNRESOLVED_REFERENCE!>h1<!>()
h2()
}
context(A)
fun B.bar() {
<!UNRESOLVED_REFERENCE!>h1<!>()
h2()
}