Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/prohibitFunInterfaceConstructorReferences.kt
T

7 lines
127 B
Kotlin
Vendored

fun interface Foo {
fun run()
}
val x = ::<!FUN_INTERFACE_CONSTRUCTOR_REFERENCE!>Foo<!>
val y = Foo { }
val z = ::Runnable