Update of /cvsroot/nice/Nice/testsuite/compiler/overloading
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15099/testsuite/compiler/overloading
Modified Files:
specificity.testsuite
Log Message:
Allow abstract interfaces as additional tags in method implementations.
Index: specificity.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/overloading/specificity.testsuite,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** specificity.testsuite 15 Sep 2004 00:47:31 -0000 1.7
--- specificity.testsuite 11 Oct 2004 15:21:33 -0000 1.8
***************
*** 127,128 ****
--- 127,142 ----
foo(null) = null;
foo(String s) = s;
+
+ /// PASS
+ /// Toplevel
+ abstract interface I {
+ void foo();
+ }
+
+ abstract class A {
+ void foo() {}
+ }
+
+ class B extends A implements I {}
+
+ foo(B(I) b) {}
|