Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/funInterfaceConstructorReferences_after.kt
T
2021-12-08 14:12:37 +03:00

11 lines
210 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +AllowKotlinFunInterfaceConstructorReference
fun interface Foo {
fun run()
}
val x = ::Foo
val y = Foo { }
val z = ::<!JAVA_SAM_INTERFACE_CONSTRUCTOR_REFERENCE!>Runnable<!>