Closed
Description
The following (devious) code results in an infinite loop:
class A {
type T <: x.type
val x: T = 42
}
This could probably be fixed by improving the checks for cycles, but it might be simpler and saner to just disallow having types bound by x.type, just like scalac, what do you think?
CC @odersky @namin .
Metadata
Metadata
Assignees
Labels
No labels