slash-lang / slash

A new language for the web
http://slash-lang.org
MIT License
386 stars 22 forks source link

NoMethodError: Undefined method '[]' on #<Method:0x2348bc8> #10

Closed filp closed 11 years ago

filp commented 11 years ago

In the following situation, an error will be thrown because slash thinks I want to call the [] method of the Method (bar) that I'm defining, while in reality I want to do something completely different.


def bar {
  ...;
}

[1, 2, 3].each(\n { n * n });

Produces:

NoMethodError: Undefined method '[]' on #<Method:0xdeadbeef>
...
haileys commented 11 years ago

This should be fixed in latest master. Thanks for reporting this issue! May Slash be with you