summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index ea0543b45..528e9c0b0 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -956,6 +956,9 @@ public:
std::ostream& print(std::ostream &o, unsigned indent) {
printOpening(o, "func ", true) << name;
+ if (type.is()) {
+ o << " (type " << type << ')';
+ }
if (params.size() > 0) {
for (auto& param : params) {
o << ' ';