Fix #526, support int*[0].init#531
Conversation
| { | ||
| auto bookmark = setBookmark(); | ||
| auto c = allocator.setCheckpoint(); | ||
| if (auto t = parseType()) |
There was a problem hiding this comment.
the condition always returns true (must be Type -> Type2 -> BuiltinType at this point due to the current token being one of BasicTypes and then the parseType does not require any further things)
Also removes the need for bookmark/checkpoint
Additionally for backwards compatibility add a getter function in ast.d in PrimaryExpression, which returns type?.type2?.builtinType ?? IdType.init
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #531 +/- ##
==========================================
+ Coverage 84.68% 84.81% +0.13%
==========================================
Files 11 11
Lines 8565 8812 +247
==========================================
+ Hits 7253 7474 +221
- Misses 1312 1338 +26
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
No description provided.