Skip to content

2.10 regression: “error: illegal inheritance; self-type does not conform to ...” #6211

Open
@scabug

Description

@scabug

The following (minimized) code compiled with 2.9, but fails to compile with 2.10:

  trait TFn1[I] { type In = I }
  trait >>[F1 <: TFn1[_], F2 <: TFn1[_]] extends TFn1[F1#In]
<console>:8: error: illegal inheritance;
 self-type >>[F1,F2] does not conform to TFn1[_$1]'s selftype TFn1[_$1]
         trait >>[F1 <: TFn1[_], F2 <: TFn1[_]] extends TFn1[F1#In]
                                                        ^

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions