Open MFAshby opened 9 months ago
Roc should return a nice error here.
Note that if you use foo = Dict.insert (Dict.empty {}) "foo" 123i64
it works correctly. The empty fn needs to be called to create a Dict.
Awesome thanks, yeah I didn't spot I had missed actually calling the function!
Roc should return a nice error here.
Agreed, an error message would have helped me spot that myself.
Trying to create a dictionary with a single entry using the following line in Roc:
Expected to get a Dict with a single entry key: "foo", value: (I64 123)
Actually got this crash using the online repl:
And the same error message running the repl on my machine (linux GNU aarch64)
Note I don't think the problem is the value type, I get the same error with this line: