Skip to content

Commit

Permalink
Fixes test.
Browse files Browse the repository at this point in the history
  • Loading branch information
esdrubal committed Jan 7, 2025
1 parent f1342df commit f2f0b31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() {
// local const shadowing a module const
const M_Y = 5;
{
const M_Y = 55; // no error message here
const M_Y = 55;
}

// local const shadowing a const imported in module
Expand All @@ -43,7 +43,7 @@ fn main() {
const F_X = 7;
const F_X = 8;
{
const F_X = 81; // no error message here
const F_X = 81;
}

{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ category = "fail"

#check: $()error
#sameln: $()Constants cannot be shadowed
#check: $()const F_X = 8;
#check: $()const F_X = 7;
#nextln: $()Shadowed constant "F_X" is declared here.
#check: $()const F_X = 81;
#nextln: $()Constant "F_X" shadows constant of the same name.
Expand Down

0 comments on commit f2f0b31

Please sign in to comment.