Skip to content

Commit 3ab52e3

Browse files
Apply suggestions from code review
Co-authored-by: odersky <odersky@gmail.com>
1 parent 4812137 commit 3ab52e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/ConstraintHandling.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ trait ConstraintHandling {
366366
if (tpw eq tp) || dropped.forall(_ frozen_<:< tpw) then tp else tpw
367367
end dropTransparentTraits
368368

369-
/** If `tp` is an applied match type alias with is also an unreducible application
369+
/** If `tp` is an applied match type alias which is also an unreducible application
370370
* of a higher-kinded type to a wildcard argument, widen to the match type's bound,
371371
* in order to avoid an unreducible application of higher-kinded type ... in inferred type"
372372
* error in PostTyper. Fixes #11246.
@@ -391,7 +391,7 @@ trait ConstraintHandling {
391391
*
392392
* Don't do these widenings if `bound` is a subtype of `scala.Singleton`.
393393
* Also, if the result of these widenings is a TypeRef to a module class,
394-
* and this type ref is different from `inst`, replace by a TermRef t
394+
* and this type ref is different from `inst`, replace by a TermRef to
395395
* its source module instead.
396396
*
397397
* At this point we also drop the @Repeated annotation to avoid inferring type arguments with it,

0 commit comments

Comments
 (0)