diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-09 00:36:50 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-09 00:36:50 -0600 |
commit | f86e714a4fdebb994101813a5fa6664f5883a0ab (patch) | |
tree | 727bec17afbb6fc373d6a6b73a69ba47ad1b7a4c /output/negative/WrongAllocate-error1.java | |
parent | f59241de07bfc0170fe3a18dc279d2a66bd58fdb (diff) |
Many final bug-fixes in heat visitor, symbol table
Diffstat (limited to 'output/negative/WrongAllocate-error1.java')
-rw-r--r-- | output/negative/WrongAllocate-error1.java | 23 |
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 ; + +} |