File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/io Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -242,8 +242,8 @@ abstract class ClassPath {
242
242
case Some ((pkg, rest)) =>
243
243
val rep = packages find (_.name == pkg) flatMap (_ findClass rest)
244
244
rep map {
245
- case x : ClassRep => x
246
- case x => throw new FatalError (" Unexpected ClassRep '%s' found searching for name '%s'" .format(x, name))
245
+ case x : AnyClassRep => x
246
+ case x => throw new FatalError (" Unexpected ClassRep '%s' found searching for name '%s'" .format(x, name))
247
247
}
248
248
case _ =>
249
249
classes find (_.name == name)
@@ -256,6 +256,7 @@ abstract class ClassPath {
256
256
}
257
257
258
258
def sortString = join(split(asClasspathString).sorted: _* )
259
+
259
260
override def equals (that : Any ) = that match {
260
261
case x : ClassPath => this .sortString == x.sortString
261
262
case _ => false
You can’t perform that action at this time.
0 commit comments