Skip to content

Context bound desugared at the wrong place in extension method #11586

Closed
@rjolly

Description

@rjolly

Compiler version

3.0.0-RC1

Minimized code

trait Conv[T]

extension [T: Conv](x: T)
  def combine (y: T): T = ???

Compiler output with -Xprint:typer

    extension [T >: Nothing <: Any](x: T) def combine(y: T)(
      implicit evidence$1: test.Conv[T]
    ): T = ???

Expectation

    extension [T >: Nothing <: Any](x: T)(using x$2: test.Conv[T]) def combine(
      y: T
    ): T = ???

, obtained with "using" syntax:

extension [T](x: T)(using Conv[T])
  def combine (y: T): T = ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions