Skip to content

Commit 2f73bcc

Browse files
retronymadriaanm
authored andcommitted
Minor changes after review
1 parent 10aa78d commit 2f73bcc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/scala/tools/nsc/classpath/DirectoryClassPath.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ trait JFileDirectoryLookup[FileEntryType <: ClassRepresentation] extends Directo
101101
// with the same base type depth.
102102
//
103103
// Notably, this will stably infer`Product with Serializable`
104-
// as the type of `ase class C(); case class D(); List(C(), D()).head`, rather than the opposite order.
104+
// as the type of `case class C(); case class D(); List(C(), D()).head`, rather than the opposite order.
105105
// On Mac, the HFS performs this sorting transparently, but on Linux the order is unspecified.
106106
//
107107
// Note this behaviour can be enabled with in javac with `javac -XDsortfiles`, but that's only

src/reflect/scala/reflect/internal/tpe/TypeMaps.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,12 +614,12 @@ private[internal] trait TypeMaps {
614614
val pre1 = pre match {
615615
case tv: TypeVar =>
616616
// Needed with existentials in prefixes, e.g. test/files/pos/typevar-in-prefix.scala
617-
// Perhaps the base type sequence of a type var should include it bounds?
617+
// Perhaps the base type sequence of a type var should include its bounds?
618618
tv.origin
619619
case _ => pre
620620
}
621621
// widen needed (at least) because of https://github.com/scala/scala-dev/issues/166
622-
(clazz == candidate) && (
622+
(
623623
if (clazz.isRefinementClass)
624624
// base type seqs of aliases over refinement types have copied refinement types based on beta reduction
625625
// for reliable lookup we need to consult the base type of the type symbol. (example: pos/t8177b.scala)

0 commit comments

Comments
 (0)