mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
add test
This commit is contained in:
parent
2b1978ab38
commit
58c38b5c82
4 changed files with 10 additions and 0 deletions
3
vlib/v/parser/tests/module_import_same_symbol2_err.out
Normal file
3
vlib/v/parser/tests/module_import_same_symbol2_err.out
Normal file
|
@ -0,0 +1,3 @@
|
|||
vlib/v/parser/tests/module_import_same_symbol2_err.vv:1:20: error: cannot register symbol `max`, it was already imported
|
||||
1 | import math { max, max }
|
||||
| ~~~
|
1
vlib/v/parser/tests/module_import_same_symbol2_err.vv
Normal file
1
vlib/v/parser/tests/module_import_same_symbol2_err.vv
Normal file
|
@ -0,0 +1 @@
|
|||
import math { max, max }
|
4
vlib/v/parser/tests/module_import_same_symbol_err.out
Normal file
4
vlib/v/parser/tests/module_import_same_symbol_err.out
Normal file
|
@ -0,0 +1,4 @@
|
|||
vlib/v/parser/tests/module_import_same_symbol_err.vv:2:17: error: cannot register symbol `max`, it was already imported
|
||||
1 | import math { max }
|
||||
2 | import arrays { max }
|
||||
| ~~~
|
2
vlib/v/parser/tests/module_import_same_symbol_err.vv
Normal file
2
vlib/v/parser/tests/module_import_same_symbol_err.vv
Normal file
|
@ -0,0 +1,2 @@
|
|||
import math { max }
|
||||
import arrays { max }
|
Loading…
Add table
Add a link
Reference in a new issue