fixes #421 & #357 :: linkage was not copied; big thanks to SiegeLord

This commit is contained in:
Moritz Warning
2010-12-19 17:57:39 +01:00
parent 3afe5bae25
commit 00faa6a906

View File

@@ -3034,7 +3034,9 @@ Type *TypeFunction::semantic(Loc loc, Scope *sc)
}
}
tf->linkage = sc->linkage;
if(tf->linkage == LINKd)
tf->linkage = sc->linkage;
if (tf->next)
{
tf->next = tf->next->semantic(loc,sc);