Files
kotlin-fork/compiler/testData/codegen/box/classes/exceptionConstructor.kt
T
2018-06-09 19:15:38 +03:00

9 lines
174 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
class GameError(msg: String): Exception(msg) {
}
fun box(): String {
val e = GameError("foo")
return if (e.message == "foo") "OK" else "fail"
}