Fix a bug where aliased constructors of nullable methodmaps could not be used.

This commit is contained in:
David Anderson
2014-11-30 18:56:37 -08:00
parent 9f5c8b60ae
commit 157549e119
4 changed files with 31 additions and 5 deletions
+5 -2
View File
@@ -2999,7 +2999,7 @@ void markusage(symbol *sym,int usage)
*
* Returns a pointer to the global symbol (if found) or NULL (if not found)
*/
symbol *findglb(const char *name,int filter)
symbol *findglb(const char *name, int filter, symbol **alias)
{
/* find a symbol with a matching automaton first */
symbol *sym=NULL;
@@ -3024,8 +3024,11 @@ symbol *findglb(const char *name,int filter)
if (sym==NULL)
sym=FindInHashTable(sp_Globals,name,fcurrent);
if (sym && sym->ident == iPROXY)
if (sym && sym->ident == iPROXY) {
if (alias)
*alias = sym;
return sym->target;
}
return sym;
}