Create From Usage: Create class by constructor call

This commit is contained in:
Alexey Sedunov
2014-10-31 20:19:35 +03:00
parent b8f68acdbb
commit 1b1eb10979
90 changed files with 1068 additions and 5 deletions
@@ -0,0 +1,9 @@
// "Create class 'Foo'" "true"
fun test() {
val a = Foo { (p: Int) -> p + 1 }
}
class Foo(function: Function1<Int, Int>) {
}