-
-
Save baroquebobcat/1299238 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6: Cannot find instance method set(int, int) on java.util.List | |
Mirah::InternalCompilerError: Cannot find instance method set(int, int) on java.util.List | |
infer at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:280 | |
infer at ~/hacking/fresh_mirah/lib/mirah/ast/structure.rb:34 | |
each at org/jruby/RubyArray.java:1603 | |
infer at ~/hacking/fresh_mirah/lib/mirah/ast/structure.rb:33 | |
infer at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:275 | |
infer at ~/hacking/fresh_mirah/lib/mirah/ast/flow.rb:125 | |
collect at org/jruby/RubyArray.java:2336 | |
infer at ~/hacking/fresh_mirah/lib/mirah/ast/flow.rb:121 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
infer at ~/hacking/fresh_mirah/lib/mirah/ast/call.rb:193 | |
send at org/jruby/RubyKernel.java:2100 | |
method_missing at ~/.rvm/rubies/jruby-1.6.4/lib/ruby/1.8/delegate.rb:292 | |
infer at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:275 | |
resolve at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:324 | |
each at org/jruby/RubyHash.java:1170 | |
resolve at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:322 | |
cycle at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:236 | |
times at org/jruby/RubyFixnum.java:256 | |
cycle at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:233 | |
resolve at ~/hacking/fresh_mirah/lib/mirah/typer/simple.rb:319 | |
infer_asts at ~/hacking/fresh_mirah/lib/mirah/generator.rb:49 | |
generate at ~/hacking/fresh_mirah/lib/mirah/generator.rb:35 | |
execute at ~/hacking/fresh_mirah/lib/mirah/commands/run.rb:30 | |
execute_base at ~/hacking/fresh_mirah/lib/mirah/commands/base.rb:41 | |
catch at org/jruby/RubyKernel.java:1191 | |
execute_base at ~/hacking/fresh_mirah/lib/mirah/commands/base.rb:38 | |
execute at ~/hacking/fresh_mirah/lib/mirah/commands/run.rb:23 | |
run at ~/hacking/fresh_mirah/lib/mirah.rb:36 | |
(root) at ~/hacking/fresh_mirah/bin/mirah:27 | |
load at org/jruby/RubyKernel.java:1063 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# because of the lack of autoboxing, you have to do this. | |
# but it currently doesn't work because list is to modifiable | |
# https://github.com/mirah/mirah/issues/126 | |
list = [1,2,3] | |
i = 0 | |
list.each do |elem| | |
list.set i, Integer.new(Integer(elem).intValue * 2) | |
i += 1 | |
end | |
puts list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment