Nice/testsuite/compiler/typing abstractInterfaces.testsuite,1.4,1.5 alike.testsuite,1.2,1.3 coverage.testsuite,1.3,1.4 final.testsuite,1.2,1.3 matching.testsuite,1.2,1.3 null.testsuite,1.9,1.10 polymorphism.testsuite,1.5,1.6

Arjan Boeijink <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/testsuite/compiler/typing
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17429/F:/nice/testsuite/compiler/typing

Modified Files:
	abstractInterfaces.testsuite alike.testsuite 
	coverage.testsuite final.testsuite matching.testsuite 
	null.testsuite polymorphism.testsuite 
Log Message:
Removed deprecated pattern syntax from testsuite.

Index: matching.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/matching.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** matching.testsuite	29 Aug 2003 16:08:11 -0000	1.2
--- matching.testsuite	1 Mar 2005 18:56:23 -0000	1.3
***************
*** 6,12 ****
  }
  
! f(x@M) = x;
  
! f(x#M) = new M();
  
  /// PASS
--- 6,12 ----
  }
  
! f(M x) = x;
  
! f(#M x) = new M();
  
  /// PASS
***************
*** 21,25 ****
  
  
! addTo(this@Packet, queue)
  {
    var next = queue;
--- 21,25 ----
  
  
! addTo(Packet this, queue)
  {
    var next = queue;

Index: final.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/final.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** final.testsuite	13 Oct 2004 18:28:51 -0000	1.2
--- final.testsuite	1 Mar 2005 18:56:23 -0000	1.3
***************
*** 7,9 ****
  
  ff(x) = x;
! ff(x@F2) = new F2();
--- 7,9 ----
  
  ff(x) = x;
! ff(F2 x) = new F2();

Index: coverage.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/coverage.testsuite,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** coverage.testsuite	14 Oct 2004 20:35:34 -0000	1.3
--- coverage.testsuite	1 Mar 2005 18:56:23 -0000	1.4
***************
*** 22,26 ****
    /// TOPLEVEL
  void method3(String);
! method3(f@String) {} // this case is mandatory to cover method3
  method3(/*/// FAIL HERE */null) {}
  
--- 22,26 ----
    /// TOPLEVEL
  void method3(String);
! method3(String f) {} // this case is mandatory to cover method3
  method3(/*/// FAIL HERE */null) {}
  

Index: null.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/null.testsuite,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** null.testsuite	13 Oct 2004 18:28:51 -0000	1.9
--- null.testsuite	1 Mar 2005 18:56:23 -0000	1.10
***************
*** 52,56 ****
  }
  
! <R,A> call(this@OOMemoize, a){
     if (this.table.containsKey(a))
       return notNull(this.table.get(a));
--- 52,56 ----
  }
  
! <R,A> call(OOMemoize this, a){
     if (this.table.containsKey(a))
       return notNull(this.table.get(a));

Index: abstractInterfaces.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/abstractInterfaces.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** abstractInterfaces.testsuite	2 Jun 2003 17:43:10 -0000	1.4
--- abstractInterfaces.testsuite	1 Mar 2005 18:56:22 -0000	1.5
***************
*** 26,30 ****
    }
    class A finally implements I {}
!   f(x@A) = new A();
  
  /// FAIL
--- 26,30 ----
    }
    class A finally implements I {}
!   f(A x) = new A();
  
  /// FAIL
***************
*** 37,41 ****
    }
    class A implements I {}
!   f(x@A) = new A();
  
  /// PASS
--- 37,41 ----
    }
    class A implements I {}
!   f(A x) = new A();
  
  /// PASS
***************
*** 47,51 ****
    abstract class A finally implements I {}
    class B extends A {}
!   f(x@B) { A res = new B(); return res; }
  
  /// PASS
--- 47,51 ----
    abstract class A finally implements I {}
    class B extends A {}
!   f(B x) { A res = new B(); return res; }
  
  /// PASS
***************
*** 74,78 ****
  var B b = new X();
  
! foo(x@X) = b;
  
  /// PASS
--- 74,78 ----
  var B b = new X();
  
! foo(X x) = b;
  
  /// PASS
***************
*** 94,97 ****
  <I1 T | T : I2> T f(T);
  f(x) = x;
! f(x@C) = new A();
  
--- 94,97 ----
  <I1 T | T : I2> T f(T);
  f(x) = x;
! f(C x) = new A();
  

Index: alike.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/alike.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** alike.testsuite	18 Dec 2004 17:37:31 -0000	1.2
--- alike.testsuite	1 Mar 2005 18:56:23 -0000	1.3
***************
*** 9,16 ****
  {}
  
! f1(x@A) = x;
  
  <A T> T f2(T);
! f2(x@A) = x.f1();
  
  /// PASS
--- 9,16 ----
  {}
  
! f1(A x) = x;
  
  <A T> T f2(T);
! f2(A x) = x.f1();
  
  /// PASS
***************
*** 21,25 ****
  }
  
! f4(x@C, y)
  {
    f4(x, y);
--- 21,25 ----
  }
  
! f4(C x, y)
  {
    f4(x, y);

Index: polymorphism.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/polymorphism.testsuite,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** polymorphism.testsuite	13 Oct 2004 18:28:51 -0000	1.5
--- polymorphism.testsuite	1 Mar 2005 18:56:23 -0000	1.6
***************
*** 20,24 ****
  <T> int m(T);
  m(x) = 0;
! m(c@Collection) = c.size();
  
  /// PASS
--- 20,24 ----
  <T> int m(T);
  m(x) = 0;
! m(Collection c) = c.size();
  
  /// PASS



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.