summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/parse-2-typedefs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parse-2-typedefs.cpp b/src/parser/parse-2-typedefs.cpp
index 90a84941d..97ba247bd 100644
--- a/src/parser/parse-2-typedefs.cpp
+++ b/src/parser/parse-2-typedefs.cpp
@@ -34,7 +34,7 @@ Result<> parseTypeDefs(
if (auto* err = built.getError()) {
std::stringstream msg;
msg << "invalid type: " << err->reason;
- return ctx.in.err(decls.typeDefs[err->index].pos, msg.str());
+ return ctx.in.err(decls.subtypeDefs[err->index].pos, msg.str());
}
types = *built;
// Record type names on the module and in typeNames.