logo       
Google Custom Search
    AddThis Social Bookmark Button

Nice/testsuite/compiler/typing wildcards.testsuite,NONE,1.1: msg#00015

Subject: Nice/testsuite/compiler/typing wildcards.testsuite,NONE,1.1
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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>