summaryrefslogtreecommitdiffstats
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp
index ed17a7ffa..a690e5b74 100644
--- a/source/slang/mangle.cpp
+++ b/source/slang/mangle.cpp
@@ -275,7 +275,12 @@ namespace Slang
emitType(context, GetType(paramDeclRef));
}
- emitType(context, GetResultType(callableDeclRef));
+ // Don't print result type for an initializer/constructor,
+ // since it is implicit in the qualified name.
+ if (!callableDeclRef.As<ConstructorDecl>())
+ {
+ emitType(context, GetResultType(callableDeclRef));
+ }
}
}