lang: Prevent struct types with duplicate field names

The previous fix for #591 in 70eecd5 didn't address all issues
concerning duplicate struct field names. It still crashed for inputs
like `$d []struct{x int; x float}`. Note the different types but
duplicate names.
This commit is contained in:
Patrick Meyer
2020-02-29 05:33:42 +01:00
committed by James Shubin
parent ea37132ce4
commit 6279be073b
3 changed files with 4 additions and 2 deletions

View File

@@ -0,0 +1 @@
# err: err1: parser: `syntax error: unexpected $end, expecting EQUALS` @1:6