[Nice-commit] Nice/testsuite/compiler/overloading specificity.testsuite,1.3,1.4
Brought to you by:
bonniot
From: <ar...@us...> - 2004-01-17 20:59:55
|
Update of /cvsroot/nice/Nice/testsuite/compiler/overloading In directory sc8-pr-cvs1:/tmp/cvs-serv2306/F:/nice/testsuite/compiler/overloading Modified Files: specificity.testsuite Log Message: Fixed overloading resolving for function object symbols. Index: specificity.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/overloading/specificity.testsuite,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** specificity.testsuite 15 Jun 2003 10:01:43 -0000 1.3 --- specificity.testsuite 17 Jan 2004 20:59:51 -0000 1.4 *************** *** 103,104 **** --- 103,122 ---- foo(@B(A) ,x) {} foo(@B(B) ,x) {} + + /// PASS + B->boolean bar = foo; + assert bar(new B()); + /// Toplevel + class A {} + class B extends A {} + boolean foo(A x) = false; + boolean foo(B x) = true; + + /// FAIL + C->void bar = /* FAIL HERE */foo; + /// Toplevel + interface A {} + interface B {} + class C implements A,B {} + void foo(A x) {} + void foo(B x) {} |