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.
with
1 parent f5d1c3b commit 4b052ffCopy full SHA for 4b052ff
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -835,7 +835,7 @@ object Parsers {
835
if (ctx.settings.strict.value)
836
deprecationWarning(DeprecatedWithOperator())
837
in.nextToken()
838
- AndTypeTree(t, withType())
+ AndTypeTree(checkWildcard(t), checkWildcard(withType()))
839
}
840
else t
841
tests/neg/i4373.scala
@@ -5,6 +5,8 @@ class X1[A >: _ | X1[_]] // error
5
class X2[A >: _ & X2[_]] // error
6
class X3[A >: X3[_] | _] // error
7
class X4[A >: X4[_] & _] // error
8
+class X5[A >: _ with X5[_]] // error
9
+class X6[A >: X6[_] with _] // error
10
11
class A1 extends _ // error
12
class A2 extends _ with _ // error // error
0 commit comments