mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.parser: prohibit redeclaration of builtin types (#10563)
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
vlib/v/parser/tests/prohibit_redeclaration_of_builtin_types.vv:1:8: error: cannot register struct `Option`, another type with this name exists
|
||||
1 | struct Option {}
|
||||
| ~~~~~~
|
||||
@@ -0,0 +1 @@
|
||||
struct Option {}
|
||||
Reference in New Issue
Block a user