Expanded and simplified test for generating bridges in sam conversions.

This commit is contained in:
Evgeny Gerashchenko
2014-10-06 23:50:59 +04:00
parent 72f96cd55c
commit b062548392
6 changed files with 53 additions and 13 deletions
@@ -0,0 +1,13 @@
fun box(): String? {
var s: String?
s = "FAIL for function literal"
JavaClass.samAdapter { s = "OK"; null }
if (s != "OK") return s
s = "FAIL for wrapper"
val function: (String?) -> Thread? = { s = "OK"; null }
JavaClass.samAdapter(function)
if (s != "OK") return s
return "OK"
}