@@ -579,7 +579,7 @@ object Types {
579
579
}
580
580
581
581
/** Is this type close enough to that type so that members
582
- * with the two type would override each other?d
582
+ * with the two types would override each other?
583
583
* This means:
584
584
* - Either both types are polytypes with the same number of
585
585
* type parameters and their result types match after renaming
@@ -666,14 +666,14 @@ object Types {
666
666
case _ => this
667
667
}
668
668
669
- /** Widen type if it is unstable (i.e. an EpxprType , or Termref to unstable symbol */
669
+ /** Widen type if it is unstable (i.e. an ExprType , or TermRef to unstable symbol */
670
670
final def widenIfUnstable (implicit ctx : Context ): Type = stripTypeVar match {
671
671
case tp : ExprType => tp.resultType.widenIfUnstable
672
672
case tp : TermRef if ! tp.symbol.isStable => tp.underlying.widenIfUnstable
673
673
case _ => this
674
674
}
675
675
676
- /** Follow aliases and derefernces LazyRefs and instantiated TypeVars until type
676
+ /** Follow aliases and dereferences LazyRefs and instantiated TypeVars until type
677
677
* is no longer alias type, LazyRef, or instantiated type variable.
678
678
*/
679
679
final def dealias (implicit ctx : Context ): Type = this match {
@@ -692,7 +692,7 @@ object Types {
692
692
case tp => tp
693
693
}
694
694
695
- /** Peform successive widenings and dealiasings until none can be applied anymore */
695
+ /** Perform successive widenings and dealiasings until none can be applied anymore */
696
696
final def widenDealias (implicit ctx : Context ): Type = {
697
697
val res = this .widen.dealias
698
698
if (res eq this ) res else res.widenDealias
@@ -920,9 +920,9 @@ object Types {
920
920
}
921
921
922
922
/** Same as `subst` but follows aliases as a fallback. When faced with a reference
923
- * to an alias type, where normal substiution does not yield a new type, the
923
+ * to an alias type, where normal substitution does not yield a new type, the
924
924
* substitution is instead applied to the alias. If that yields a new type,
925
- * this type is returned, outherwise the original type (not the alias) is returned.
925
+ * this type is returned, otherwise the original type (not the alias) is returned.
926
926
* A use case for this method is if one wants to substitute the type parameters
927
927
* of a class and also wants to substitute any parameter accessors that alias
928
928
* the type parameters.
@@ -1145,7 +1145,7 @@ object Types {
1145
1145
def map (tm : TypeMap )(implicit ctx : Context ): ProtoType
1146
1146
}
1147
1147
1148
- /** Implementations of this trait cache the resukts of `narrow`. */
1148
+ /** Implementations of this trait cache the results of `narrow`. */
1149
1149
trait NarrowCached extends Type {
1150
1150
private var myNarrow : TermRef = null
1151
1151
override def narrow (implicit ctx : Context ): TermRef = {
@@ -1186,7 +1186,7 @@ object Types {
1186
1186
* timing dependent. It should only be used if the outcome of the
1187
1187
* essential computation does not depend on the symbol being present or not.
1188
1188
* It's currently used to take an optimized path in substituters and
1189
- * type accumulators, as well as to be safe in diagnostiic printing.
1189
+ * type accumulators, as well as to be safe in diagnostic printing.
1190
1190
* Normally, it's better to use `symbol`, not `currentSymbol`.
1191
1191
*/
1192
1192
def currentSymbol (implicit ctx : Context ) =
@@ -2555,7 +2555,7 @@ object Types {
2555
2555
/** The type of an import clause tree */
2556
2556
case class ImportType (expr : Tree ) extends UncachedGroundType
2557
2557
2558
- /** Sentinal for "missing type" */
2558
+ /** Sentinel for "missing type" */
2559
2559
case object NoType extends CachedGroundType {
2560
2560
override def exists = false
2561
2561
override def computeHash = hashSeed
0 commit comments