Minor, add test case on SAM conversion over smart cast

This commit is contained in:
Alexander Udalov
2019-08-09 19:21:22 +02:00
parent dd0e296af1
commit ad43bc23ea
4 changed files with 29 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// TARGET_BACKEND: JVM
fun test(a: Any?) {
a as () -> Unit
Runnable(a).run()
}
fun box(): String {
var result = "Fail"
test {
result = "OK"
}
return result
}