Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/funInterfaceConstructorReferences_after.kt
T
2022-04-08 14:02:14 +02:00

14 lines
248 B
Kotlin
Vendored

// FIR_IDENTICAL
// !LANGUAGE: +KotlinFunInterfaceConstructorReference
fun interface Foo {
fun run()
}
val x = ::Foo
val y = Foo { }
val z = ::<!JAVA_SAM_INTERFACE_CONSTRUCTOR_REFERENCE!>Runnable<!>
val w = id(::Foo)
fun <T> id(t: T): T = t