Extract some codegen tests to black box testData
This commit is contained in:
committed by
Alexander Udalov
parent
f7e0b06c2f
commit
10c5949199
@@ -0,0 +1,8 @@
|
||||
fun foo(x: Any) = x !is Runnable
|
||||
|
||||
fun box(): String {
|
||||
val r = object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
return if (!foo(r) && foo(42)) "OK" else "Fail"
|
||||
}
|
||||
Reference in New Issue
Block a user