Skip to content

Commit f2743f7

Browse files
committed
Fixed typos
1 parent 5c5ec48 commit f2743f7

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ class TypeComparer(initctx: Context) extends DotClass {
13821382
false
13831383
}
13841384

1385-
/** Constraint `c1` subsumes constraint `c2`, if under `c2` as constaint we have
1385+
/** Constraint `c1` subsumes constraint `c2`, if under `c2` as constraint we have
13861386
* for all poly params `p` defined in `c2` as `p >: L2 <: U2`:
13871387
*
13881388
* c1 defines p with bounds p >: L1 <: U1, and

tests/pos/subtyping.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ class A {
66
}
77
object test {
88

9-
class B
10-
class C
11-
129
def tag1[T](x: T): String & T = ???
1310
def tag2[T](x: T): T & String = ???
1411

0 commit comments

Comments
 (0)