diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-08-27 19:55:14 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-08-27 20:19:41 +0200 |
| commit | 4074aed7c0c28afc7d4a3522045196c3f39b5208 (patch) | |
| tree | 8d2c2ce5f6767f8f4355e37e262f85223ee362e3 /pkg/ast/parser.go | |
| parent | 58579664687b203ff34fad8aa02bf470ef0bc981 (diff) | |
pkg/compiler: more static error checking
Update #217
Diffstat (limited to 'pkg/ast/parser.go')
| -rw-r--r-- | pkg/ast/parser.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
