lib/steep/interface/builder.rb in steep-0.3.0 vs lib/steep/interface/builder.rb in steep-0.4.0
- old
+ new
@@ -66,9 +66,14 @@
when AST::Types::Intersection
AST::Types::Intersection.build(
types: type.types.map {|ty| absolute_type(ty, current: current) },
location: type.location
)
+ when AST::Types::Tuple
+ AST::Types::Tuple.new(
+ types: type.types.map {|ty| absolute_type(ty, current:current) },
+ location: type.location
+ )
else
type
end
end