Closed yegor256 closed 5 months ago
apparently, this works:
n := System args at(1) asNumber
if(n < 0, writeln("n must be positive!"))
Hm, that looks like it might be a bug in the error message where it swaps the required and given types.
Looks right to me. The receiver of <
is a string, so it expects a string to compare to, but the argument is 0
. Hence, "must be a Sequence, not a 'Number'."
Yes, that sounds right.
Looks right to me. The receiver of
<
is a string, so it expects a string to compare to, but the argument is0
. Hence, "must be a Sequence, not a 'Number'."
I'm doing this:
I'm getting:
What's wrong?