sinatra/mustermann

Shorthand Error Syntax

kaiserprogrammer opened this issue · 2 comments

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)

@kaiserprogrammer Could you confirm #66?

It Works!