1
0
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:
shadowninja55
2021-06-25 06:08:56 -04:00
committed by GitHub
parent e9de30373f
commit be8be3d319
4 changed files with 59 additions and 34 deletions

View File

@@ -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 {}
| ~~~~~~

View File

@@ -0,0 +1 @@
struct Option {}