Nice/src/bossa/syntax overloadedsymbol.nice,1.17,1.18
Daniel Bonniot <[email protected]> Mon, 04 Apr 2005 15:56:34 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
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))]));
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click