summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r--src/passes/Print.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp
index db121a22c..ce4238f34 100644
--- a/src/passes/Print.cpp
+++ b/src/passes/Print.cpp
@@ -2727,6 +2727,10 @@ struct PrintSExpression : public UnifiedExpressionVisitor<PrintSExpression> {
o << '(';
printMajor(o, "func ");
printName(curr->name, o);
+ if (getTypeSystem() == TypeSystem::Nominal) {
+ o << " (type ";
+ printHeapType(o, curr->type, currModule) << ')';
+ }
if (!stackIR && curr->stackIR && !minify) {
o << " (; has Stack IR ;)";
}