Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 81a38ab

Browse files
committedApr 25, 2025·
chore: Fix compilation issue after backport conflict
1 parent 5d6a151 commit 81a38ab

File tree

2 files changed

+120
-126
lines changed

2 files changed

+120
-126
lines changed
 

‎compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ class ReplDriver(settings: Array[String],
547547
try {
548548
val entries = flatten(jarFile)
549549

550-
val existingClass = entries.filter(_.ext.isClass).find(tryClassLoad(_).isDefined)
550+
val existingClass = entries.filter(_.extension == "class").find(tryClassLoad(_).isDefined)
551551
if (existingClass.nonEmpty)
552552
out.println(s"The path '$path' cannot be loaded, it contains a classfile that already exists on the classpath: ${existingClass.get}")
553553
else inContext(state.context):
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.