From 34b7693229bdc5680d551aacea7463058ce60f86 Mon Sep 17 00:00:00 2001 From: Sam Vervaeck Date: Sun, 21 Jan 2024 09:16:46 +0100 Subject: [PATCH] Fix bug where field is missing from record type expression --- bootstrap/cxx/src/Parser.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap/cxx/src/Parser.cc b/bootstrap/cxx/src/Parser.cc index 9482c98c6..b89da9822 100644 --- a/bootstrap/cxx/src/Parser.cc +++ b/bootstrap/cxx/src/Parser.cc @@ -449,6 +449,7 @@ after_constraints: } if (T3->getKind() == NodeKind::VBar) { Tokens.get(); + Fields.push_back(std::make_tuple(Field, nullptr)); VBar = static_cast(T3); Rest = parseTypeExpression(); if (!Rest) {