charly-lang / charly

🐈 The Charly Programming Language | Written by @KCreate
https://charly-lang.github.io/charly/
MIT License
199 stars 10 forks source link

Fix invalid method name checks #146

Closed KCreate closed 7 years ago

KCreate commented 7 years ago

visitor.cr parser.cr exception.cr

First two are invalid checks, since FunctionLiteral#name and TFunc.name always returns a string, it should check for an empty string.

Second is a typecheck on a variable that's always a String.