Inline const block is not always an expression #82750
Labels
F-inline_const
Inline constants (aka: const blocks, const expressions, anonymous constants)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
fails to compile, producing this error message:
However, if the entire
const {}
is placed in yet another{}
block, it just works:The text was updated successfully, but these errors were encountered: