default
on free constant items doesn't get rejected
#117791
Labels
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
The following code compiles successfully while it should lead to an error due to the presence of the contextual keyword
default
on the free constant item:The AST validation code was incorrectly implemented and only rejects
default
on free const items that don't have a body:stderr
The text was updated successfully, but these errors were encountered: