emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

commented

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 πŸ˜„