-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
fixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Milestone
Description
This is a regression from 2.10.4, in which the following code compiles.
Welcome to Scala version 2.11.1 (OpenJDK 64-Bit Server VM, Java 1.7.0_55).
Type in expressions to have them evaluated.
Type :help for more information.
scala> trait Cm[F[_], A]
defined trait Cm
scala> case class C[A]() extends Cm[C, A]
defined class C
scala> case class D[S,A]() extends Cm[({type l[a] = D[S,a]})#l, A]
<console>:8: error: illegal cyclic reference involving class D
case class D[S,A]() extends Cm[({type l[a] = D[S,a]})#l, A]
^
<console>:8: error: D does not take type parameters
case class D[S,A]() extends Cm[({type l[a] = D[S,a]})#l, A]
^
Metadata
Metadata
Assignees
Labels
fixed in Scala 3This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
scabug commentedon Jun 6, 2014
Imported From: https://issues.scala-lang.org/browse/SI-8649?orig=1
Reporter: Stephen Compall (s11001001)
Affected Versions: 2.11.1
scabug commentedon Jun 6, 2014
@adriaanm said:
Workaround, for now: define it as a regular class and define the companion object manually.