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
define function foo (n == 0)
list(n)
end;
format-out("%=\n", foo(0)); // good
format-out("%=\n", foo(1)); // bad, no warning
format-out("%=\n", foo("")); // good, warning
So it appears there's no compile-time warning if the type of the argument (<integer>) matches the type of the singleton parameter (object-class(0)). Same for symbols so I assume it's a general problem and just hasn't been implemented yet.
There is, of course, a runtime error.
The text was updated successfully, but these errors were encountered:
https://play.opendylan.org/shared/fad09bebf972f561
So it appears there's no compile-time warning if the type of the argument (
<integer>
) matches the type of the singleton parameter (object-class(0)
). Same for symbols so I assume it's a general problem and just hasn't been implemented yet.There is, of course, a runtime error.
The text was updated successfully, but these errors were encountered: