mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Changed dict type syntax to using a colon instead of a comma
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user