Nice/testsuite/compiler/typing wildcards.testsuite,NONE,1.1

Daniel Bonniot <[email protected]> Wed, 25 May 2005 15:26:20 +0000
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-serv1897/testsuite/compiler/typing

Added Files:
	wildcards.testsuite 
Log Message:
Simple tests for wildcard types.


--- NEW FILE: wildcards.testsuite ---
/// PASS
  A<int> ai = new A();
  A<String> as = new A();

  foo(ai);
  foo(as);
  /// Toplevel
class A<T> {}
void foo(A<?>) {}

/// PASS
  /// Toplevel
class A<T> { T x1; T x2; }
void swap(A<?> a)
{
  (a.x1, a.x2) = (a.x2, a.x1);
}



-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click