File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
compiler/scala/tools/nsc/classpath
reflect/scala/reflect/internal/tpe Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments