Files
kotlin-fork/compiler/testData/diagnostics/checkerTestUtil/test.kt
T
2013-10-01 19:32:38 +04:00

15 lines
184 B
Kotlin
Vendored

fun foo(u : Unit) : Int = 1
fun test() : Int {
foo(1)
val a : () -> Unit = {
foo(1)
}
return 1 - "1"
}
class A() {
val x : Int = foo1(xx)
}
fun foo1() {}