From 00faa6a906bf3e9857c5ac5d29a58aa4dacf49e6 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sun, 19 Dec 2010 17:57:39 +0100 Subject: [PATCH] fixes #421 & #357 :: linkage was not copied; big thanks to SiegeLord --- dmd/mtype.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dmd/mtype.c b/dmd/mtype.c index 67bdcdb7..95f93ad3 100644 --- a/dmd/mtype.c +++ b/dmd/mtype.c @@ -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);