Skip to content

Extension method on aliased path dependent type is not found  #17972

Closed as not planned
@ftucky

Description

@ftucky

Compiler version

3.3.1-RC1

Minimized code

trait A:
	type X = Int
	extension (x:X) def foo : String = "foo"

def bar(a:A)(x:a.X) = x.foo // <-- ERROR : value foo is not a member of a.X

Output

Does not compile :

value foo is not a member of a.X

Expectation

Should compile

observations:

Following flavors behave as expected:

trait A:
	type X 
trait A:
	type X >: Int <: Int // Strictly Bounded

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions