summaryrefslogtreecommitdiff
path: root/output/ex21.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-11 15:14:07 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-11 15:14:07 -0600
commit2a40b613252eb3d7a95624957dca61fdfa30dc2a (patch)
tree94f553dfd35d445af1447834eb9735521ac24397 /output/ex21.java
parentb8c16f5ff7dffd1ceb51d2115aa2f86a59f090fe (diff)
Fix three more bugs related to st
Diffstat (limited to 'output/ex21.java')
-rw-r--r--output/ex21.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/output/ex21.java b/output/ex21.java
new file mode 100644
index 0000000..2bb11a3
--- /dev/null
+++ b/output/ex21.java
@@ -0,0 +1,24 @@
+class test66{
+ public static void main(String[] a){
+ System.out.println(new Test().start());
+ }
+}
+
+class Test2 extends Test{
+}
+
+class Test{
+
+ Test test;
+
+ public int start(){
+ test = test.next();
+ return 0;
+ }
+
+ public Test next() {
+ Test2 test2;
+ test2 = new Test2();
+ return test2;
+ }
+}