aboutsummaryrefslogtreecommitdiff
path: root/src/parseh.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-08-07 20:08:37 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-08-07 20:08:37 -0700
commit0d5ecc4312f45f9288c4a349837f04b733405960 (patch)
treee5b61cab7f98f36025b4bbb85d9bef7239162aa5 /src/parseh.cpp
parent275410dc33d3f040be9213d5f8175e1ced6c6a7d (diff)
downloadzig-0d5ecc4312f45f9288c4a349837f04b733405960.tar.gz
zig-0d5ecc4312f45f9288c4a349837f04b733405960.zip
ability to have a return type of 'type'
Diffstat (limited to 'src/parseh.cpp')
-rw-r--r--src/parseh.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseh.cpp b/src/parseh.cpp
index ae91b143aa..11015b8133 100644
--- a/src/parseh.cpp
+++ b/src/parseh.cpp
@@ -600,7 +600,7 @@ static TypeTableEntry *resolve_type_with_table(Context *c, const Type *ty, const
param_info->is_noalias = qt.isRestrictQualified();
}
- return get_fn_type(c->codegen, &fn_type_id);
+ return get_fn_type(c->codegen, &fn_type_id, true);
}
case Type::Record:
{