Skip to content

@rbs! Embedding Ignored When Adjacent to Certain Nodes #147

@pocket7878

Description

@pocket7878

On using embedding syntax adjacent to normal node, behavior is unexpected.

class Foo
  # @rbs! type t = String | Integer
  def foo
    "bar"
  end
end

Expected behavior

Expected to output both embedded code & normal code.

class Foo
  type t = String | Integer

  def foo: () -> untyped
end

Actual behavior

class Foo
  # @rbs! type t = String | Integer
  def foo: () -> untyped
end

System configuration

  • rbs v3.6.1
  • rbs-inline v0.10.0
  • steep v1.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions