Transform Throwable members to properties

This commit is contained in:
Denis Zharkov
2015-10-13 20:30:29 +03:00
committed by Mikhail Glukhikh
parent 9088bf67c7
commit 17c906658d
22 changed files with 63 additions and 51 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ fun foo(s: String): String? {
return "no message";
}
catch(e: NumberFormatException) {
return e.getMessage(); // Work around an overload-resolution bug
return e.message // Work around an overload-resolution bug
}
}