Expr: fix func argument panic (#29663)

would get wrong type for reflect
This commit is contained in:
Kyle Brandt 2020-12-07 13:58:20 -05:00 committed by GitHub
parent 785aa4df26
commit da32cef4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,7 +505,7 @@ func (e *State) walkFunc(node *parse.FuncNode) (Results, error) {
case *parse.VarNode:
v = e.Vars[t.Name]
case *parse.ScalarNode:
v = t.Float64
v = NewScalarResults(&t.Float64)
case *parse.FuncNode:
v, err = e.walkFunc(t)
case *parse.UnaryNode: