From 4074aed7c0c28afc7d4a3522045196c3f39b5208 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 27 Aug 2017 19:55:14 +0200 Subject: pkg/compiler: more static error checking Update #217 --- pkg/ast/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ast/parser.go') diff --git a/pkg/ast/parser.go b/pkg/ast/parser.go index ca2505e19..fd7b9ad4f 100644 --- a/pkg/ast/parser.go +++ b/pkg/ast/parser.go @@ -228,7 +228,7 @@ func (p *parser) parseResource() *Resource { p.consume(tokResource) name := p.parseIdent() p.consume(tokLBrack) - base := p.parseIdent() + base := p.parseType() p.consume(tokRBrack) var values []*Int if p.tryConsume(tokColon) { -- cgit mrf-deployment