The following code
class Foo
#: Integer
attr_reader :bar, :baz, :foo
end
is compiled to
class Foo
sig { returns(::Integer) }
def bar; end
def baz; end
def foo; end
end
In the result, only the first method has a sig, the rest don't. It is expected all the methods to have sigs.
The following code
is compiled to
In the result, only the first method has a sig, the rest don't. It is expected all the methods to have sigs.