Handle Array for unnamed annotation value #165

Closed
RobertFischer opened this Issue Jan 30, 2012 · 3 comments

3 participants

@RobertFischer

This code errors out in parsing, resulting in an unhelpful error to the user:

class Foo

  $SuppressWarnings["foo", "bar"]
  def test
  end

end

This, however, works:

class Foo

  $SuppressWarnings[["foo", "bar"]]
  def test
  end

end

So it'd be nice to slip some syntactic sugar in to implicitly convert the former to the latter.

@baroquebobcat
The Mirah Community member

this is a parser bug

ERROR: expected tEnd before '          $Su'
          $SuppressWarnings["foo", "bar"]
@abscondment
@baroquebobcat baroquebobcat referenced this issue in mirah/mirah-parser Feb 18, 2013
Closed

Handle Array for unnamed annotation value #4

@baroquebobcat
The Mirah Community member

I moved this to the parser project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment