Update tests

This commit is contained in:
romanart
2018-10-18 00:01:24 +03:00
parent df5872281b
commit 44d9ff6c71
2 changed files with 10 additions and 4 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
// kotlin.Nothing should not be loaded here
val x = "" is Nothing
@@ -1,6 +1,13 @@
// IGNORE_BACKEND: JS_IR
var result = "fail"
fun sideEffect(): Any {
result = "OK"
return Unit
}
fun box(): String {
// This used to be problematic because of an attempt to load kotlin/Nothing class
val x = "" is Nothing?
return "OK"
val x = sideEffect() is Nothing?
return result
}