-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
"parameter type declared here" should additionally be provided for unions #22128
Copy link
Copy link
Open
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.error messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.error messageThis issue points out an error message that is unhelpful and should be improved.This issue points out an error message that is unhelpful and should be improved.frontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.
Zig Version
0.14.0-dev.2370+5c6b25d9b
Steps to Reproduce and Observed Output
In this example we get desired output for enums:
✔️ Good
However, if you change both enums to unions, then we no longer have a note that tells which function is being called:
❌ Missing function definition note
Expected Output
The additional error note that mentions the function definition source location: