Adjust testData: JDK collections behave like non-platform in backend

Some of that changes looks like regression and should be fixed soon
This commit is contained in:
Denis Zharkov
2015-07-03 16:24:47 +03:00
parent d350303951
commit a218c1359f
4 changed files with 5 additions and 7 deletions
@@ -37,7 +37,7 @@ fun genericClassCast() {
val c = ArrayList<Int>()
c.add(1)
// EXPRESSION: c.get(0)
// RESULT: instance of java.lang.Integer(id=ID): Ljava/lang/Integer;
// RESULT: 1: I
//Breakpoint!
val b = 1
}
@@ -46,7 +46,7 @@ fun genericClassCast() {
val c = ArrayList<String>()
c.add("a")
// EXPRESSION: c.get(0)
// RESULT: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer: Ljava/lang/ClassCastException;
// RESULT: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number: Ljava/lang/ClassCastException;
//Breakpoint!
val b = 1
}