Un-special-case parsing base."etc"

This commit is contained in:
Nigel Tao committed 2020-06-10 11:34:56 +10:00
1 parent 4e2d0c1e5f
commit 74d291453d
5 files changed
+40 -31

No files matched your search

+1 -1
View File
@@ -317,7 +317,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
}
if lTyp.IsStatus() {
if v := n.Value(); v.Operator() == 0 {
if v := n.Value(); (v.Operator() == 0) || (v.Operator() == t.IDDot) {
if id := v.Ident(); (id != t.IDOk) && (q.hasIsErrorFact(id) || isErrorStatus(id, q.tm)) {
n.SetRetsError()
}