Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
shannah opened this Issue · 1 comment

2 participants

@shannah

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

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
Something went wrong with that request. Please try again.