Generating SAM wrapper class per source file.

This commit is contained in:
Evgeny Gerashchenko
2013-06-13 19:36:26 +04:00
parent 0fbf203ff7
commit 7ef4c8cfa8
10 changed files with 118 additions and 33 deletions
@@ -0,0 +1,4 @@
fun getWrapped1(): Runnable {
val f = { }
return Runnable(f)
}
@@ -0,0 +1,4 @@
fun getWrapped2(): Runnable {
val f = { }
return Runnable(f)
}
@@ -0,0 +1,6 @@
fun box(): String {
val class1 = getWrapped1().getClass()
val class2 = getWrapped2().getClass()
return if (class1 != class2) "OK" else "Same class: $class1"
}