File tree 2 files changed +8
-1
lines changed
compiler/src/dotty/tools/dotc/parsing
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ object Parsers {
835
835
if (ctx.settings.strict.value)
836
836
deprecationWarning(DeprecatedWithOperator ())
837
837
in.nextToken()
838
- AndTypeTree (t, withType())
838
+ AndTypeTree (checkWildcard(t), checkWildcard( withType() ))
839
839
}
840
840
else t
841
841
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ class X1[A >: _ | X1[_]] // error
5
5
class X2 [A >: _ & X2 [_]] // error
6
6
class X3 [A >: X3 [_] | _] // error
7
7
class X4 [A >: X4 [_] & _] // error
8
+ class X5 [A >: _ with X5 [_]] // error
9
+ class X6 [A >: X6 [_] with _] // error
10
+
11
+ // From 28752b8fb9b6db06fff4c606c3a402dc12b0ee06.scala:
12
+ object i7 {
13
+ val i8 : i0[Int ] = classOf [Nothing , _ with i5]()
14
+ }
8
15
9
16
class A1 extends _ // error
10
17
class A2 extends _ with _ // error // error
You can’t perform that action at this time.
0 commit comments