Open antonmedv opened 4 days ago
If it is repaired, should the Mode
be wrapped with an int function? like:
code := `int(Mode) == 1`
Or will Mode
be converted implicitly?
code := `Mode == 1`
Is it possible to add a parameter to control whether implicit conversion is performed?
The problem is with typed int field. Expr see it as an int and assumes no deref is needed. I think we can try to make type checker more advance.
Are you already fixing it?
Playground:https://go.dev/play/p/WIj3_3NoR2z
It prints false, but the expectation is true
Originally posted by @Cassius0924 in https://github.com/expr-lang/expr/issues/154#issuecomment-2488321401