Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[Bug/Enhancement?] Can't use statement expressions to initialize constants

Open blat-blatnik opened this issue 3 years ago • 0 comments

This doesn't work but I think it should:

const int = { int x = 123; x }; // Error: Expression does not evaluate to a constant value.

Similar to #1278. Not a huge deal, but it would be nice if the error message was at least changed if this doesn't work by design.

blat-blatnik avatar Jan 06 '22 18:01 blat-blatnik