WARNING: Misaligned end at mirah.lang.ast.StringCodeSource@a70cf21:5:1 #244

Open
shannah opened this Issue Jan 29, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@shannah
Contributor

shannah commented Jan 29, 2014

With mirahc 0.1.2 I can't seem to compile a for loop.

  def doloop
    countries = ['Canada','United States','Mexico','Russia','Venezuela']

    countries.each do |a|
      puts a 
    end
    return countries
  end

Results in:

...
WARNING: Misaligned end at mirah.lang.ast.StringCodeSource@a70cf21:5:1
NOTE: closes block at mirah.lang.ast.StringCodeSource@a70cf21:1:1
...

It does compile, but when I try to run the code I get

java.lang.NoSuchFieldError: a

I have tried several variations, but I am new to mirah so could be doing something wrong. It seems like a bug though. Let me know if you require further details.

@baroquebobcat

This comment has been minimized.

Show comment Hide comment
@baroquebobcat

baroquebobcat Jan 30, 2014

Member

That's fun. It looks like there's a problem with the closure bindings. Could you post some more info about your environment? Java version, arguments to mirahc?

Member

baroquebobcat commented Jan 30, 2014

That's fun. It looks like there's a problem with the closure bindings. Could you post some more info about your environment? Java version, arguments to mirahc?

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