-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Const values don't short circuit. #19773
Comments
It seems very hard to make semcheck short circuir, I have no idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have a const string it will not short-circuit and will not compile:
Example
Current Output
Expected Output
I would expect it to work similar to
let
orvar
.output:
That works fine.
The
const
make it work more like some sort of substitution:output:
Same thing happens with
static
values:output:
Related issue: related #19492
The text was updated successfully, but these errors were encountered: