Changed dict type syntax to using a colon instead of a comma

This commit is contained in:
2022-09-04 09:00:55 +01:00
parent d12ad4f60d
commit 36154b25ac
6 changed files with 7 additions and 6 deletions

View File

@@ -1273,7 +1273,7 @@ static Literal readTypeToLiteral(Parser* parser) {
case TOKEN_BRACKET_LEFT: {
Literal l = readTypeToLiteral(parser);
if (match(parser, TOKEN_COMMA)) {
if (match(parser, TOKEN_COLON)) {
Literal r = readTypeToLiteral(parser);
TYPE_PUSH_SUBTYPE(&literal, l);