Files
kotlin-fork/compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.fir.kt
T
2024-03-19 15:38:35 +00:00

18 lines
277 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
// WITH_STDLIB
interface C
fun C.foo(body: () -> Unit) {}
context(C)
class A {
val foo = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, RECURSION_IN_IMPLICIT_TYPES!>foo<!> {}
}
fun C.test() {
object {
val foo = foo {}
}
}