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
Milestone

Comments

@consiliens
Copy link
Contributor

"
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

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

This works on master. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants