Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorthand Error Syntax #64

Closed
kaiserprogrammer opened this issue Jun 8, 2017 · 2 comments
Closed

Shorthand Error Syntax #64

kaiserprogrammer opened this issue Jun 8, 2017 · 2 comments

Comments

@kaiserprogrammer
Copy link

Error class is not reserved in ruby, so it will be likely created and used.

Using Shorthand Error Syntax with or operator can lead to undefined classes.

Example:

class Error; end
require "mustermann/sinatra"

mustermann-1.0.0/lib/mustermann/ast/translator.rb:98:in `class:Translator': uninitialized constant Mustermann::Error (NameError)

@namusyaka
Copy link
Member

@kaiserprogrammer Could you confirm #66?

@kaiserprogrammer
Copy link
Author

It Works!

namusyaka added a commit that referenced this issue Aug 11, 2017
avoid unintended conflict of namespace, fixes #64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants