[Nice-commit] Nice/src/bossa/syntax overloadedsymbol.nice,1.17,1.18
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-04-04 15:56:40
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13892/src/bossa/syntax Modified Files: overloadedsymbol.nice Log Message: Fix overloading resolution for instance fields when all field accesses are also be valid candidates. Index: overloadedsymbol.nice =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/overloadedsymbol.nice,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** overloadedsymbol.nice 4 Apr 2005 12:21:48 -0000 1.17 --- overloadedsymbol.nice 4 Apr 2005 15:56:31 -0000 1.18 *************** *** 321,324 **** --- 321,329 ---- if (Node.thisExp != null) try { + // Some fields might have been valid candidates until now, + // so we need to release their cloned type before starting a + // different overloading resolution. + fieldAccesses.foreach(VarSymbol s => s.releaseClonedType()); + let res = new CallExp(function: createOverloadedSymbolExp(fieldAccesses, ident, true), arguments: new Arguments(arguments: [new Argument(value: notNull(Node.thisExp))])); |