parser: fix GG struct init

pull/4231/head
Alexander Medvednikov 2020-04-04 13:11:50 +02:00
parent c0d4503f25
commit d1f653f9bd
1 changed files with 1 additions and 1 deletions

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.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 !p.inside_match_case
{ {