8 lines
149 B
Kotlin
Vendored
8 lines
149 B
Kotlin
Vendored
class GameError(msg: String): Exception(msg) {
|
|
}
|
|
|
|
fun box(): String {
|
|
val e = GameError("foo")
|
|
return if (e.message == "foo") "OK" else "fail"
|
|
}
|