Closed as not planned
Description
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