15 lines
184 B
Kotlin
15 lines
184 B
Kotlin
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() {} |