10 lines
132 B
Kotlin
10 lines
132 B
Kotlin
// "Create class 'Foo'" "true"
|
|
|
|
fun test() {
|
|
val a = Foo { (p: Int) -> p + 1 }
|
|
}
|
|
|
|
class Foo(function: Function1<Int, Int>) {
|
|
|
|
}
|