Skip to content

Inherited extension conflicts with local method even when signatures do not match #10495

Closed
@edolgy

Description

@edolgy
class Foo:
  extension(x: String) def run: Unit  = ???

object Bar extends Foo:
  def run(v: Int): Unit = ???

  "ABC".run  // Fails:  Reference to run is ambiguous...

I believe it is introduced in M2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions