Remove ast.NewExpr statusPkg arg

This commit is contained in:
Nigel Tao committed 2020-06-10 12:05:48 +10:00
1 parent 7dc73a856a
commit ed48514f30
11 files changed
+39 -43

No files matched your search

+2 -2
View File
@@ -359,8 +359,8 @@ func (q *checker) tcheckExprOther(n *a.Expr, depth uint32) error {
return nil
} else if id1.IsDQStrLiteral(q.tm) {
if _, ok := q.c.statuses[n.StatusQID()]; !ok {
return fmt.Errorf("check: unrecognized status %s", n.StatusQID().Str(q.tm))
if _, ok := q.c.statuses[t.QID{0, n.Ident()}]; !ok {
return fmt.Errorf("check: unrecognized status %s", n.Ident().Str(q.tm))
}
n.SetMType(typeExprStatus)
return nil