summaryrefslogtreecommitdiff
path: root/output/negative/WrongAllocate-error1.java
diff options
context:
space:
mode:
Diffstat (limited to 'output/negative/WrongAllocate-error1.java')
-rw-r--r--output/negative/WrongAllocate-error1.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/output/negative/WrongAllocate-error1.java b/output/negative/WrongAllocate-error1.java
new file mode 100644
index 0000000..072ac98
--- /dev/null
+++ b/output/negative/WrongAllocate-error1.java
@@ -0,0 +1,23 @@
+class WrongAllocate {
+ public static void main(String[] z) {
+ A a ;
+ B b ;
+ a = new B() ;
+ b = new A() ;
+ System.out.println(12) ;
+ }
+}
+
+class A {
+
+ public int get_tt() {
+ return 32 ;
+ }
+
+}
+
+class B extends A {
+
+ int useless ;
+
+}