Skip to content

Commit

Permalink
Add duplicated data with defname test
Browse files Browse the repository at this point in the history
  • Loading branch information
imaqtkatt committed Mar 4, 2024
1 parent 1f1f281 commit e39c66f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/golden_tests/compile_file/error_data_def_name.hvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data A = A
A = 0

main = A
5 changes: 5 additions & 0 deletions tests/snapshots/compile_file__error_data_def_name.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/compile_file/error_data_def_name.hvm
---
Duplicated top-level name 'A'.

0 comments on commit e39c66f

Please sign in to comment.