Open mvpeterson opened 7 months ago
Another example of the issue:
(: foo_var (-> Variable Type))
(= (foo_var $x) (get-type $x))
!(foo_var 100) ; works, fails with type error
!(foo_var $x) ; works, returns %Undefined%
!(foo_var S) ; doesn't work, returns %Undefined%
!(foo_var (an expression)) ; doesn't work, returns %Undefined%
Describe the bug Want to set type
Symbol
for a function input argument. When I pass an argument like(This is in expression)
type checking is passed, though it should not.To Reproduce Run the following MeTTa script
Expected behavior
[(Error (This is an expression) BadType)]
Actual behavior
[(This is an expression)]
Additional context
!(get-type (This is an expression))
gives[%Undefined%]