Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

consiliens opened this issue Aug 26, 2011 · 2 comments
Milestone

Comments

@consiliens
Copy link
Contributor

@consiliens 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
Copy link
Member

@baroquebobcat 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
Copy link
Member

@baroquebobcat 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.