Skip to content

Commit

Permalink
use nameof instead of literal (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ek authored Nov 22, 2024
1 parent e5467d2 commit 19738f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/validity/constant.ab
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

main {
const x = 42
unsafe $ x=123 $
unsafe $ {nameof x}=123 $
echo status // will output 1 if reassignment didnt succeed
echo x
unsafe $ unset x $
unsafe $ unset {nameof x} $
echo status // will output 1 if unsetting did not succeed
echo x
}

0 comments on commit 19738f5

Please sign in to comment.