[Nice-commit] Nice/testsuite/compiler/methods super.testsuite,1.3,1.4
Brought to you by:
bonniot
|
From: <bo...@us...> - 2003-03-04 16:50:51
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods
In directory sc8-pr-cvs1:/tmp/cvs-serv26840/testsuite/compiler/methods
Modified Files:
super.testsuite
Log Message:
Fixed compilation of packages cyclically importing each other (exhibited by
some code written by Alex).
Index: super.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/super.testsuite,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** super.testsuite 17 Sep 2002 16:30:56 -0000 1.3
--- super.testsuite 4 Mar 2003 16:50:11 -0000 1.4
***************
*** 129,132 ****
--- 129,154 ----
/// PASS
+ /// COMMENT super defined in an imported package, with mutual import.
+ /// package a import b
+ /// Toplevel
+ void m(A);
+ m(@A) { if (false) m(new A()); }
+
+ /// package b import a
+ /// Toplevel
+ m(@B) { super; }
+
+ /// PASS
+ /// COMMENT super defined in an imported package, with mutual import.
+ /// package a import b
+ /// Toplevel
+ m(@B) { super; }
+
+ /// package b import a
+ /// Toplevel
+ void m(A);
+ m(@A) { if (false) m(new A()); }
+
+ /// PASS
assert (new C().foo() == 1);
/// Toplevel
|