1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

parser: fix GG struct init

This commit is contained in:
Alexander Medvednikov
2020-04-04 13:11:50 +02:00
parent c0d4503f25
commit d1f653f9bd

View File

@ -667,7 +667,7 @@ pub fn (p mut Parser) name_expr() ast.Expr {
//
(p.builtin_mod && p.tok.lit in table.builtin_type_names)) &&
//
(p.tok.lit.len == 1 || !p.tok.lit[p.tok.lit.len - 1].is_capital()) &&
(p.tok.lit.len in [1,2] || !p.tok.lit[p.tok.lit.len - 1].is_capital()) &&
//
!p.inside_match_case
{