lib/steep/drivers/utils/validator.rb in steep-0.8.2 vs lib/steep/drivers/utils/validator.rb in steep-0.9.0
- old
+ new
@@ -32,11 +32,11 @@
module_type: nil).validate(check)
end
when AST::Signature::Module
yield_self do
- instance_interface = builder.build_instance(sig.name, with_initialize: true)
+ instance_interface = builder.build_instance(sig.name)
instance_args = instance_interface.params.map {|var| AST::Types::Var.fresh(var) }
module_interface = builder.build_module(sig.name)
module_args = module_interface.params.map {|var| AST::Types::Var.fresh(var) }
@@ -56,10 +56,10 @@
module_type: module_type).validate(check)
end
when AST::Signature::Class
yield_self do
- instance_interface = builder.build_instance(sig.name, with_initialize: true)
+ instance_interface = builder.build_instance(sig.name)
instance_args = instance_interface.params.map {|var| AST::Types::Var.fresh(var) }
module_interface = builder.build_class(sig.name, constructor: true)
module_args = module_interface.params.map {|var| AST::Types::Var.fresh(var) }