Skip to content

Scaladoc: this.type in type bounds is incorrectly rendered as enclosing class/trait #17226

Open
@Florian3k

Description

@Florian3k

The following code:

class X:
  def foo[T <: this.type](): Unit = ???

when rendered in Scaladoc results in

def foo[T <: X](): Unit

Expectation

It should be rendered as:

def foo[T <: this.type](): Unit

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions