mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
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"
|
|
}
|