Issue 60: using 3.times anywhere overrides other methods' times'? #109

Closed
consiliens opened this Issue Aug 26, 2011 · 2 comments

Comments

Projects
None yet
2 participants
@consiliens
Contributor

consiliens commented Aug 26, 2011

"
Reported by rogerpack2005, May 28, 2011
See

https://gist.github.com/997022

if I have

3.times do |n|
 33
end

in there it fails to compile. If I don't, it compiles and works a champ.
Thanks!


Comment 1 by rogerpack2005, May 30, 2011
possible dupe of #40
"

http://code.google.com/p/mirah/issues/detail?id=60

@baroquebobcat

This comment has been minimized.

Show comment
Hide comment
@baroquebobcat

baroquebobcat Oct 18, 2011

Member

reproduced the behavior. Ran script and got:

Inference Error:
Can't assign java.lang.Object to variable of type int
108.mirah:21: Can't assign java.lang.Object to variable of type int
RubyInt.new(1).times do |n|
                         ^
Member

baroquebobcat commented Oct 18, 2011

reproduced the behavior. Ran script and got:

Inference Error:
Can't assign java.lang.Object to variable of type int
108.mirah:21: Can't assign java.lang.Object to variable of type int
RubyInt.new(1).times do |n|
                         ^
@baroquebobcat

This comment has been minimized.

Show comment
Hide comment
@baroquebobcat

baroquebobcat Mar 5, 2013

Member

This works on master. Closing.

Member

baroquebobcat commented Mar 5, 2013

This works on master. Closing.

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