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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions