diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-14 00:00:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-14 00:00:10 +0100 |
| commit | af1d4d6e72eeb75b32c40f3d4ca7bf6a78e8a043 (patch) | |
| tree | c56c070a4458fcf020e45294b3dde1d408d7fbec /src/parser.hpp | |
| parent | f6c7a0c9b8086f43f958f69b2ad3e960e408bc57 (diff) | |
Implement Allow `.?` operator to unwrap any union #549
Diffstat (limited to 'src/parser.hpp')
| -rw-r--r-- | src/parser.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.hpp b/src/parser.hpp index ca480f403..61be8c54a 100644 --- a/src/parser.hpp +++ b/src/parser.hpp @@ -292,7 +292,7 @@ AST_KIND(_ExprBegin, "", bool) \ AST_KIND(TernaryExpr, "ternary expression", struct { Ast *cond, *x, *y; }) \ AST_KIND(TernaryIfExpr, "ternary if expression", struct { Ast *x, *cond, *y; }) \ AST_KIND(TernaryWhenExpr, "ternary when expression", struct { Ast *x, *cond, *y; }) \ - AST_KIND(TypeAssertion, "type assertion", struct { Ast *expr; Token dot; Ast *type; }) \ + AST_KIND(TypeAssertion, "type assertion", struct { Ast *expr; Token dot; Ast *type; Type *type_hint; }) \ AST_KIND(TypeCast, "type cast", struct { Token token; Ast *type, *expr; }) \ AST_KIND(AutoCast, "auto_cast", struct { Token token; Ast *expr; }) \ AST_KIND(_ExprEnd, "", bool) \ |