Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug time nil #42

Closed
lian-yue opened this issue Jul 17, 2019 · 2 comments
Closed

bug time nil #42

lian-yue opened this issue Jul 17, 2019 · 2 comments

Comments

@lian-yue
Copy link

lian-yue commented Jul 17, 2019

var timeNil *time.Time
var out interface{}
out, err = expr.Eval("t == nil", map[string]interface{}{"t": timeNil})
fmt.Println("Output", out, err)

// Output false <nil>

go.mod

github.com/antonmedv/expr v0.0.0-20190710105945-85ffe5789329

@lian-yue
Copy link
Author

@antonmedv
Copy link
Member

Fixed in ba4d739 v2.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants