summaryrefslogtreecommitdiff
path: root/output/negative/NonDistinctTypes-error.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-09 00:36:50 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-09 00:36:50 -0600
commitf86e714a4fdebb994101813a5fa6664f5883a0ab (patch)
tree727bec17afbb6fc373d6a6b73a69ba47ad1b7a4c /output/negative/NonDistinctTypes-error.java
parentf59241de07bfc0170fe3a18dc279d2a66bd58fdb (diff)
Many final bug-fixes in heat visitor, symbol table
Diffstat (limited to 'output/negative/NonDistinctTypes-error.java')
-rw-r--r--output/negative/NonDistinctTypes-error.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/output/negative/NonDistinctTypes-error.java b/output/negative/NonDistinctTypes-error.java
new file mode 100644
index 0000000..9909e91
--- /dev/null
+++ b/output/negative/NonDistinctTypes-error.java
@@ -0,0 +1,17 @@
+class StealMainArg {
+ public static void main(String[] z) {
+ A a ;
+ a = new A() ;
+ System.out.println(a.foo(3)) ;
+ }
+}
+
+class A {
+
+ int b ;
+ boolean b ;
+
+ public int foo(int a) {
+ return a ;
+ }
+}