mirror of https://github.com/tbklang/tlang.git
Tristan B. Velloza Kildaire
990b8a7d87
- Added a new default parameter to `parseTypedDeclaration()` which is `onlyType=false`. If one sets this to `true` then we will parse the type till the identifier (what would be it) but stopping on the identifier and returning a bogus `TypedEntity` with a fake name string but with the type string intact - `parseCast()` now uses `parseTypedDeclaration(onlyType=true)` - this should help us when we want to cast for arrays or pointers (where all that logic is in `parseTypedDeclaration()`). Test cases - Added a complex `cast(<expr>)` with a pointer - this should work in upstream `pointers` branch - File name is `simple_cast_complex_type.t` |
||
---|---|---|
.. | ||
commandline | ||
compiler | ||
misc | ||
testing | ||
app.d |