8 lines
166 B
Plaintext
8 lines
166 B
Plaintext
fun foo1() : fun (Int) : Int = { (x: Int) => x }
|
|
|
|
fun foo() {
|
|
val h : fun (Int) : Int = foo1();
|
|
h(1)
|
|
val m : fun (Int) : Int = {(a : Int) => 1}//foo1()
|
|
m(1)
|
|
} |