Nice/testsuite/compiler/overloading specificity.testsuite,1.9,1.10
Daniel Bonniot <[email protected]> Sat, 12 Mar 2005 17:00:30 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/overloading
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9032/testsuite/compiler/overloading
Modified Files:
specificity.testsuite
Log Message:
Added expected failure positions.
Changed testcase to really test ambiguity even after additional tags are
taken into account, and not unavoidable failure due to identical domains.
Index: specificity.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/overloading/specificity.testsuite,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** specificity.testsuite 1 Mar 2005 18:56:22 -0000 1.9
--- specificity.testsuite 12 Mar 2005 17:00:27 -0000 1.10
***************
*** 38,42 ****
/// FAIL
! f(a: new B(), "");
///Toplevel
--- 38,42 ----
/// FAIL
! /* ///FAIL HERE */ f(a: new B(), "");
///Toplevel
***************
*** 74,83 ****
/// FAIL
/// Toplevel
! abstract class A {}
! class B extends A {}
! void foo(A);
! void foo(A);
! foo(B(A) x) {}
! foo(B(B) x) {}
/// PASS
--- 74,85 ----
/// FAIL
/// Toplevel
! interface I1 {}
! interface I2 {}
! class B implements I1,I2 {}
! void foo(I1, String);
! void foo(I2, String);
! void foo(I2, int);
! foo(B(I1) x, y) {}
! /* ///FAIL HERE */ foo(B(I2) x, y) {}
/// PASS
***************
*** 111,115 ****
/// FAIL
! C->void bar = /* FAIL HERE */foo;
/// Toplevel
interface A {}
--- 113,117 ----
/// FAIL
! C->void bar = /* /// FAIL HERE */foo;
/// Toplevel
interface A {}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click