-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Isolated declarations error messages #131
Isolated declarations error messages #131
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/compiler/diagnosticMessages.json
Outdated
"category": "Error", | ||
"code": 9019 | ||
}, | ||
"Enum member initializers must be computable without references to external symbols with --isolatedDeclarations": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this sentence, it might be confusing in the first glance whether the "with" is connected to symbols or the whole sentence. I guess "With --isolatedDeclarations, enum member ..." might be better, but for consistency, maybe it's okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did worry about it as well. I'm not sure how to phrase it and make it consistent though
src/compiler/diagnosticMessages.json
Outdated
"category": "Error", | ||
"code": 9024 | ||
}, | ||
"Reference directives are not supported in isolated declaration mode.": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... supported with --isolatedDeclarations
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Will change.
Also, this PR does not seem to build.
|
a2fab36
to
c45ffaf
Compare
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
Signed-off-by: Titian Cernicova-Dragomir <[email protected]>
b5dc788
to
857f90b
Compare
c223e05
into
isolated-declarations-safety-improvements
Improved errors.