solhint icon indicating copy to clipboard operation
solhint copied to clipboard

A function named 'leave' breaks solhint

Open AleG94 opened this issue 6 years ago • 3 comments

Having a function named leave like this one will break solhint validation.

function leave() public {
     // something
}

Executing solhint returns:

Error: ParserError: no viable alternative at input 'functionleave'

Version: 3.0.0-rc.5

AleG94 avatar Mar 05 '20 20:03 AleG94

Hi @AleG94, thanks for reporting this. It seems like a problem with the parser we are using, I'll open a related issue.

fvictorio avatar Mar 06 '20 03:03 fvictorio

Hey @AleG94, sorry this took so long. Could you please check the latest next version and see if this still happens?

fvictorio avatar Apr 16 '20 18:04 fvictorio

No worries, I can confirm it works on 3.0.0-rc.7. Thank you!

AleG94 avatar Apr 16 '20 20:04 AleG94