You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume DMD allows these expressions since this PR: dlang/dmd#14672
The parser contains the comment "defer error for better diagnostics", so maybe the new syntax is not allowed intentionally.
The following expressions are accepted by DMD, but not allowed by the grammar:
The grammar for PrimaryExpression only allows '(' or '.' after FundamentalType:
I assume DMD allows these expressions since this PR: dlang/dmd#14672
The parser contains the comment "defer error for better diagnostics", so maybe the new syntax is not allowed intentionally.
The new syntax is used by a test in druntime: https://github.com/dlang/dmd/blob/fb07d990466f185c2adb19d320627c2723d3978a/druntime/src/core/internal/traits.d#L625
The text was updated successfully, but these errors were encountered: