[Nice-commit] Nice/testsuite/compiler/typing wildcards.testsuite,NONE,1.1
Brought to you by:
bonniot
From: Daniel B. <bo...@us...> - 2005-05-25 15:26:28
|
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); } |