File tree 2 files changed +1
-7
lines changed
compiler/src/dotty/tools/repl
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ class ReplDriver(settings: Array[String],
547
547
try {
548
548
val entries = flatten(jarFile)
549
549
550
- val existingClass = entries.filter(_.ext.isClass ).find(tryClassLoad(_).isDefined)
550
+ val existingClass = entries.filter(_.extension == " class " ).find(tryClassLoad(_).isDefined)
551
551
if (existingClass.nonEmpty)
552
552
out.println(s " The path ' $path' cannot be loaded, it contains a classfile that already exists on the classpath: ${existingClass.get}" )
553
553
else inContext(state.context):
Original file line number Diff line number Diff line change @@ -3456,7 +3456,6 @@ Text => empty
3456
3456
Language => Scala
3457
3457
Symbols => 12 entries
3458
3458
Occurrences => 33 entries
3459
- Diagnostics => 1 entries
3460
3459
Synthetics => 4 entries
3461
3460
3462
3461
Symbols:
@@ -3508,11 +3507,6 @@ Occurrences:
3508
3507
[20:4..20:13): scalameta -> scala/reflect/Selectable#selectDynamic().
3509
3508
[21:4..21:19): StructuralTypes -> example/StructuralTypes.
3510
3509
3511
- Diagnostics:
3512
- [14:20..14:23): [warning] Alphanumeric method foo is not declared infix; it should not be used as infix operator.
3513
- Instead, use method syntax .foo(...) or backticked identifier `foo`.
3514
- The latter can be rewritten automatically under -rewrite -source 3.4-migration.
3515
-
3516
3510
Synthetics:
3517
3511
[12:2..12:6):user => reflectiveSelectable(*)
3518
3512
[13:2..13:6):user => reflectiveSelectable(*)
You can’t perform that action at this time.
0 commit comments