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