[go: up one dir, main page]

kex oops docs ↗ kex.run ↗

All codes › Parse

KEXEP-0066

error ExpectedRParenAfterArguments

[KEXEP-0066]: Error, expected ')' after arguments, got found

A call was opened with ( and never closed. The parser only notices when it reaches something that cannot be an argument, here the end on the next line, so the caret points there and not at the missing ).

main do
  IO.printLine((1 + 2)
end
example.kex:3:1: [KEXEP-0066]: Error, expected ')' after arguments, got end [end]
  |
3 | end
  | ^^^

Fixing it

Count the brackets on the lines above the caret, and close the one that is open:

main do
  IO.printLine((1 + 2))
end

Edit this explanation

Is this diagnostic reported where it should not be, missing where it should be, or saying the wrong thing? Report it on the compiler's issue tracker.