fix: correctly store boolean result for branching operations

This commit is contained in:
Marc Vertes
2020-02-14 16:26:04 +01:00
committed by GitHub
parent 1b971b539c
commit 7037424edf
9 changed files with 144 additions and 28 deletions

View File

@@ -431,6 +431,9 @@ func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) {
}
}
case landExpr, lorExpr:
t.cat = boolT
case mapType:
t.cat = mapT
if t.key, err = nodeType(interp, sc, n.child[0]); err != nil {