Generating SAM wrapper class per source file.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user