We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3bc41 commit 61e7be1Copy full SHA for 61e7be1
tests/pos/i2941.scala
@@ -0,0 +1,17 @@
1
+trait FooBase {
2
+ type Bar >: Null <: BarBase { type This <: FooBase.this.Bar }
3
+ type This >: this.type <: FooBase { type This <: FooBase.this.This }
4
+
5
+ def derived(bar: Bar): This = ???
6
+}
7
8
+trait BarBase {
9
+ type This >: Null <: BarBase { type This <: BarBase.this.This }
10
11
12
+object Test {
13
+ def bad(foo: FooBase): FooBase = foo match {
14
+ case foo: FooBase =>
15
+ foo.derived(???) // Triggers infinite loop in TypeAssigner.avoid()
16
+ }
17
0 commit comments