summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/parsers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parsers.h b/src/parser/parsers.h
index 1d786f363..601007036 100644
--- a/src/parser/parsers.h
+++ b/src/parser/parsers.h
@@ -2094,7 +2094,7 @@ template<typename Ctx> MaybeResult<> subtype(Ctx& ctx) {
}
if (ctx.in.takeSExprStart("sub"sv)) {
- if (ctx.in.takeKeyword("open"sv)) {
+ if (!ctx.in.takeKeyword("final"sv)) {
ctx.setOpen();
}
if (auto super = maybeTypeidx(ctx)) {