Transform Throwable members to properties
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9088bf67c7
commit
17c906658d
@@ -3,5 +3,5 @@ class GameError(msg: String): Exception(msg) {
|
||||
|
||||
fun box(): String {
|
||||
val e = GameError("foo")
|
||||
return if (e.getMessage() == "foo") "OK" else "fail"
|
||||
return if (e.message == "foo") "OK" else "fail"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user