Mercurial > projects > ldc
diff dmd/struct.c @ 1358:78038e540342
Fix overload resolution issue in dmd bug 313/314 fix.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 16 May 2009 12:17:33 +0200 |
parents | e961851fb8be |
children | 8026319762be |
line wrap: on
line diff
--- a/dmd/struct.c Fri May 15 17:17:20 2009 +0200 +++ b/dmd/struct.c Sat May 16 12:17:33 2009 +0200 @@ -346,9 +346,9 @@ Dsymbol *s = search_function(this, id); FuncDeclaration *fdx = s ? s->isFuncDeclaration() : NULL; if (fdx) - { FuncDeclaration *fd = fdx->overloadExactMatch(tfeqptr); + { FuncDeclaration *fd = fdx->overloadExactMatch(tfeqptr, getModule()); if (!fd) - { fd = fdx->overloadExactMatch(tfeq); + { fd = fdx->overloadExactMatch(tfeq, getModule()); if (fd) { // Create the thunk, fdptr FuncDeclaration *fdptr = new FuncDeclaration(loc, loc, fdx->ident, STCundefined, tfeqptr);