Files
kotlin-fork/backend.native/tests/external/codegen/box/classes/exceptionConstructor.kt
T
2017-03-13 15:31:46 +03:00

8 lines
149 B
Kotlin

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