File tree Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Expand file tree Collapse file tree 3 files changed +10
-12
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import scala .tools .partest ._
2
2
import java .io .{Console => _ , _ }
3
3
4
- object Test extends DirectTest {
4
+ object Test extends StoreReporterDirectTest {
5
5
6
- override def extraSettings : String = " -usejavacp -Ydelambdafy:method -Xprint:delambdafy -d " + testOutput.path
6
+ override def extraSettings : String = List (
7
+ " -usejavacp" ,
8
+ " -Xfatal-warnings" ,
9
+ " -Ybackend:GenBCode" ,
10
+ " -Ydelambdafy:method" ,
11
+ " -Xprint:delambdafy" ,
12
+ s " -d ${testOutput.path}"
13
+ ) mkString " "
7
14
8
15
override def code = """ package o
9
16
|package a {
@@ -19,6 +26,7 @@ object Test extends DirectTest {
19
26
override def show (): Unit = {
20
27
val baos = new java.io.ByteArrayOutputStream ()
21
28
Console .withOut(baos)(Console .withErr(baos)(compile()))
29
+ assert(! storeReporter.hasErrors, message = filteredInfos map (_.msg) mkString " ; " )
22
30
val out = baos.toString(" UTF-8" )
23
31
// was 2 before the fix, the two PackageDefs for a would both contain the ClassDef for the closure
24
32
assert(out.lines.count(_ contains " class hihi$1" ) == 1 , out)
You can’t perform that action at this time.
0 commit comments