A test for JET-55 Bogus overload ambiguity trying to call Exception.getMessage()

This commit is contained in:
Andrey Breslav
2011-05-26 20:00:43 +04:00
parent 009e983b41
commit cc26da07df
+8
View File
@@ -26,4 +26,12 @@ fun test(l : java.util.List<Int>) {
// Collections.sort<Integer>(new ArrayList<Integer>())
val o = "sdf" <warning>as</warning> Object
try {
// ...
}
catch(e: Exception) {
System.out?.println(e.getMessage())
}
}