You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this. There is definitely something strange here, but the domain restriction operator is <-: rather than <:-. If you change that, it appears to work correctly(?). So I need to look at why or how <:- parses without an error. I'll investigate.
So setval <:- mapval parses as setval <: (-mapval). But for some reason, the type check of a unary minus is not checking that the argument is numeric. So for example -"Hello" does not cause a type checking error (it causes a runtime error, of course).
So in your case, it was trying to "cast" a map to a numeric value, which in the general case is real. Hence the error, cannot get real value of map.
The fix looks relatively simple. Just checking it now.
Description
The domain restriction operation for a map fails with an error.
Steps to Reproduce
Using 2.7.4, the following operations lead to
Error 4089: Can't get real value of map in 'Test2'
The text was updated successfully, but these errors were encountered: