A few cast tests

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@275 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 54084faa00
commit 8142839a41
  1. 15
      jode/test/LocalTypes.java

@ -141,5 +141,20 @@ public class LocalTypes {
}
}
}
public void castTests() {
System.err.println(null instanceof int[]);
System.err.println(((Object)new int[4]) instanceof byte[]);
System.err.println(((Object)new byte[4]) instanceof int[]);
System.err.println(((Object)new int[4]) instanceof LocalTypes);
System.err.println(((Object)new int[4]) instanceof int[][]);
System.err.println(new Object[4] instanceof int[][]);
System.err.println(new int[5][4] instanceof java.io.Serializable[]);
System.err.println(((Object)this) instanceof RuntimeException);
System.err.println(((RuntimeException)(Object)this).getMessage());
((java.io.PrintStream)null).println("Hallo");
((LocalTypes) null).a = new A();
((LocalTypes) null).b = new B();
}
}

Loading…
Cancel
Save