Add pkg to ast Expr nodes

This commit is contained in:
Nigel Tao committed 2017-12-29 13:28:31 +11:00
1 parent 8b4ba30a36
commit 139bcfa7f1
5 files changed
+25 -7

No files matched your search

+1 -1
View File
@@ -523,7 +523,7 @@ func (q *checker) tcheckExprOther(n *a.Expr, depth uint32) error {
case t.KeyError, t.KeyStatus, t.KeySuspension:
nominalKeyword := n.Operator()
declaredKeyword := t.ID(0)
if s, ok := q.c.statuses[t.QID{0, n.Ident()}]; ok {
if s, ok := q.c.statuses[n.StatusQID()]; ok {
declaredKeyword = s.Status.Keyword()
} else {
msg, _ := t.Unescape(n.Ident().Str(q.tm))