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
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
(: foo (-> Symbol Type))
(= (foo $x) $x)
!(foo (This is an expression))
Expected behavior [(Error (This is an expression) BadType)]
Actual behavior [(This is an expression)]
Additional context
MeTTa version: 0.1.dev2471+ge7ba2bf.d20240419, compiled with "minimal"
!(get-type (This is an expression)) gives [%Undefined%]
The text was updated successfully, but these errors were encountered:
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%]
The text was updated successfully, but these errors were encountered: