File tree Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -740,10 +740,9 @@ trait TypedTreeInfo extends TreeInfo[Type] { self: Trees.Instance[Type] =>
740
740
def sliceTopLevel (tree : Tree , cls : ClassSymbol )(using Context ): List [Tree ] = tree match {
741
741
case PackageDef (pid, stats) =>
742
742
val slicedStats = stats.flatMap(sliceTopLevel(_, cls))
743
- if (! slicedStats.isEmpty)
744
- cpy.PackageDef (tree)(pid, slicedStats) :: Nil
745
- else
746
- Nil
743
+ val isEffectivelyEmpty = slicedStats.forall(_.isInstanceOf [Import ])
744
+ if isEffectivelyEmpty then Nil
745
+ else cpy.PackageDef (tree)(pid, slicedStats) :: Nil
747
746
case tdef : TypeDef =>
748
747
val sym = tdef.symbol
749
748
assert(sym.isClass)
Original file line number Diff line number Diff line change 1
- # has location not matching its contents: contains class mixins.Collections
2
- collections_1.scala
3
-
4
1
# Infinite loop
5
2
t3612.scala
6
3
7
- # Other failure
4
+ # java.lang.AssertionError: assertion failed:
5
+ # Found: (File.this.parens0 : => Test.this.parens.BraceImpl)
6
+ # Required: ((Test.this.parens : Test.this.ParensImpl) | (Test.this.bracks : Test.this.BracksImpl))#BraceImpl
8
7
t802.scala
9
8
10
- # Matchtype
11
- i7087.scala
12
-
13
- # Nullability
14
- nullable.scala
15
- notNull.scala
16
-
17
- # cyclic reference involving @uncheckedVariance
18
- annot-bootstrap.scala
9
+ # missing position
10
+ rbtree.scala
Original file line number Diff line number Diff line change 1
- # Closure type miss match
2
- eff-dependent.scala
3
-
4
- # We get: class Foo needs to be abstract, since implicit val x$1: TC is not defined
5
- i2567.scala
Original file line number Diff line number Diff line change @@ -504,11 +504,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
504
504
tastyOutput.mkdir()
505
505
val flags = flags0 and (" -d" , tastyOutput.getPath) and " -from-tasty"
506
506
507
- def tastyFileToClassName (f : JFile ): String = {
508
- val pathStr = targetDir.toPath.relativize(f.toPath).toString.replace(JFile .separatorChar, '.' )
509
- pathStr.stripSuffix(" .tasty" ).stripSuffix(" .hasTasty" )
510
- }
511
- val classes = flattenFiles(targetDir).filter(isTastyFile).map(tastyFileToClassName)
507
+ val classes = flattenFiles(targetDir).filter(isTastyFile).map(_.toString)
512
508
513
509
val reporter =
514
510
TestReporter .reporter(realStdout, logLevel =
You can’t perform that action at this time.
0 commit comments