[Nice-commit] Nice/testsuite/compiler/typing inference.testsuite,1.1,1.2
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-03-22 12:46:58
|
Update of /cvsroot/nice/Nice/testsuite/compiler/typing In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6211/F:/nice/testsuite/compiler/typing Modified Files: inference.testsuite Log Message: Testcases from bugreports of polymorpic type inference. Index: inference.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/typing/inference.testsuite,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** inference.testsuite 17 Mar 2004 17:07:01 -0000 1.1 --- inference.testsuite 22 Mar 2004 12:36:37 -0000 1.2 *************** *** 96,97 **** --- 96,128 ---- } String s = l.get(0); + + /// PASS bug + var n = 5; + let table1 = new HashMap(10); + for (int i = 0; i <= n; i++) + table1["foo_" + i] = i; + + String key; + for (each : table1.entrySet) { + key = each.getKey; + } + + /// PASS bug + let L1 = new LinkedList(); + for (var j = 1; j <= 10; j++) L1.add(j); + + LinkedList<int> L2 = new LinkedList(L1); + + /// PASS bug + let L1 = new LinkedList(); + for (var j = 1; j <= 10; j++) + L1.add(j); + + let L3 = new LinkedList(); + while (!L1.isEmpty) + L3.add( L1.removeFirst ); + + /// PASS bug + let L1 = new LinkedList(); + L1.add(999); + println( L1[0] ); |