lib/parlour/rbi_generator/class_namespace.rb in parlour-8.1.0 vs lib/parlour/rbi_generator/class_namespace.rb in parlour-9.0.0
- old
+ new
@@ -29,10 +29,10 @@
# have one.
# @param abstract [Boolean] A boolean indicating whether this class is abstract.
# @param block A block which the new instance yields itself to.
# @return [void]
def initialize(generator, name, final, sealed, superclass, abstract, &block)
- super(generator, name, final, sealed, &block)
+ super(generator, name, final, sealed, &T.cast(block, T.nilable(T.proc.params(x: Namespace).void)))
@superclass = superclass
@abstract = abstract
end
sig do