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 5c5ec48 commit f2743f7Copy full SHA for f2743f7
src/dotty/tools/dotc/core/TypeComparer.scala
@@ -1382,7 +1382,7 @@ class TypeComparer(initctx: Context) extends DotClass {
1382
false
1383
}
1384
1385
- /** Constraint `c1` subsumes constraint `c2`, if under `c2` as constaint we have
+ /** Constraint `c1` subsumes constraint `c2`, if under `c2` as constraint we have
1386
* for all poly params `p` defined in `c2` as `p >: L2 <: U2`:
1387
*
1388
* c1 defines p with bounds p >: L1 <: U1, and
tests/pos/subtyping.scala
@@ -6,9 +6,6 @@ class A {
6
7
object test {
8
9
- class B
10
- class C
11
-
12
def tag1[T](x: T): String & T = ???
13
def tag2[T](x: T): T & String = ???
14
0 commit comments