Create From Usage: Create class by constructor call
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// "Create class 'Foo'" "true"
|
||||
|
||||
fun test() {
|
||||
val a = Foo { (p: Int) -> p + 1 }
|
||||
}
|
||||
|
||||
class Foo(function: Function1<Int, Int>) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user