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
{{ message }}
Repository navigation
vscode dscanner - struct initializer with named argument confuses DScanner #966
I've been using D in vscode with code-d extension, now I have an assoc array that I'm trying to initialize where the values are a struct.
Using named arguments in the struct shows so many errors in vscode, (and formatting also seems to be confused) while dmd compiles the code just fine, this is a screenshot.
Activity
KaruroChori commentedon Jun 24, 2025
As for my tests, the current version of d-scanner works well with named args. I think it is a downstream problem with the vscode extension.
For reference, emitting the AST of
results in no syntax error, even if the scanner used by the extension will complain: