aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-16 12:46:25 +0100
committergingerBill <bill@gingerbill.org>2021-05-16 12:46:25 +0100
commit385385364b3d19c6bac2ee6184da1f0db38e9099 (patch)
treea0f2b34da690dd291f5198f95d7cc4a024325e4d /src/check_expr.cpp
parent9ccdc40f65542702d5a4603f34a468435d97c352 (diff)
Fix #988
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 61cfd7d6e..ecffe7510 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1115,6 +1115,7 @@ bool check_cycle(CheckerContext *c, Entity *curr, bool report) {
error(curr->token, "\t%.*s refers to", LIT(curr->token.string));
}
error(curr->token, "\t%.*s", LIT(curr->token.string));
+ curr->type = t_invalid;
}
return true;
}