Permalink
Browse files

Fix array return types

  • Loading branch information...
1 parent d1e6f05 commit 8238ee7a5380d54e9f9cda0ff9eb4573a79b25b1 @ribrdb ribrdb committed Mar 1, 2012
Showing with 5 additions and 1 deletion.
  1. +2 −1 Gemfile
  2. +3 −0 lib/mirah/jvm/types/factory.rb
View
@@ -7,4 +7,5 @@ gem "bitescript", :git => 'https://github.com/headius/bitescript.git'
# To test against a local copy of bitescript,
# replace ":git => ''" with ":path => '<path to your local copy>'"
gem 'turn'
-gem 'minitest'
+gem 'minitest'
+gem 'ruby-debug'
@@ -226,6 +226,7 @@ def defineType(scope, node, name, superclass, interfaces)
future = @futures[type.name]
if future
future.resolved(type)
+ future
else
cache_and_wrap(type)
end
@@ -244,6 +245,8 @@ def type(scope, name, array=false, meta=false)
else
name = name.getClassName
end
+ elsif name.kind_of?(Type) && name.array?
+ array = true
end
type = basic_type(scope, name)
type = type.array_type if type && array

0 comments on commit 8238ee7

Please sign in to comment.