Invalid field access for object like this
let var = {"a": {"b": "randomstring" }};
var.a.b.c != "";
returns error like this
invalid operation: int(string) (3:9)
| var.a.b.c != "";
| ........^
When the object is loaded in the Env and accessed the same way, we get this:
type string has no field c (3:5)
| a.b.c != "";
| ....^
Former is misleading and latter is appropriate. Can we have both cases behave the same?
Invalid field access for object like this
returns error like this
When the object is loaded in the Env and accessed the same way, we get this:
Former is misleading and latter is appropriate. Can we have both cases behave the same?