diff options
Diffstat (limited to 'output/negative')
-rw-r--r-- | output/negative/DumbBracketSend-error.java | 22 | ||||
-rw-r--r-- | output/negative/DumbSend-error.java | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/output/negative/DumbBracketSend-error.java b/output/negative/DumbBracketSend-error.java new file mode 100644 index 0000000..263f66f --- /dev/null +++ b/output/negative/DumbBracketSend-error.java @@ -0,0 +1,22 @@ +class ex19 { + public static void main(String[] a){ + System.out.println(new Test().start()); + } +} + +class Test { + + Test test; + int[] i; + + public int start() { + i = new int[10]; + test = (i).next(); + return 0; + } + + public Test next() { + System.out.println(1); + return test; + } +} diff --git a/output/negative/DumbSend-error.java b/output/negative/DumbSend-error.java new file mode 100644 index 0000000..529ad39 --- /dev/null +++ b/output/negative/DumbSend-error.java @@ -0,0 +1,22 @@ +class DumbSend { + public static void main(String[] a){ + System.out.println(new Test().start()); + } +} + +class Test { + + Test test; + int[] i; + + public int start() { + i = new int[10]; + test = i.next(); + return 0; + } + + public Test next() { + System.out.println(1); + return test; + } +} |