Argument errors are 0-indexed
betseg opened this issue Β· comments
For example, if I have a line like π str1 str2 str3 βοΈ
the error returned is: π¨ error: π expects 0 arguments but 2 were supplied.
Actually the compiler is correct. str1
one is the callee, itβs not an argument. With inheritance etc. that does make a difference. See also: https://www.emojicode.org/docs/reference/classes-valuetypes.html#srule-method-call
But thanks for noting π