Files
kotlin-fork/js/js.translator/testData/box/char/charElvis.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

15 lines
321 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1112
package foo
fun box(): String {
assertEquals("1", "" + ('1' ?: return "fail1"))
assertEquals("2", "" + (null ?: '2'))
val c3: Char? = '3'
assertEquals("3", "" + (c3 ?: return "fail3"))
val c4: Char? = null
assertEquals("4", "" + (c4 ?: "4"))
return "OK"
}