Skip to content

tapioca gem: attr_* with several names + RBS-comment: not all result methods have sigs #2662

Description

@Slike9

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions