aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index f075dd7c58..559ebe8cda 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1279,6 +1279,12 @@ struct ZigTypeOpaque {
struct ZigTypeFnFrame {
ZigFn *fn;
ZigType *locals_struct;
+
+ // This is set to the type that resolving the frame currently depends on, null if none.
+ // It's for generating a helpful error message.
+ ZigType *resolve_loop_type;
+ AstNode *resolve_loop_src_node;
+ bool reported_loop_err;
};
struct ZigTypeAnyFrame {