File tree 2 files changed +6
-4
lines changed
compiler/test/dotty/tools/dotc 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class FromTastyTests extends ParallelTesting {
21
21
22
22
23
23
@ Test def posTestFromTasty : Unit = {
24
- // Can be reproduced with
24
+ // Failures can be reproduced in isolation with
25
25
// > sbt
26
26
// > dotc -Ythrough-tasty -Ycheck:all <source>
27
27
@@ -72,7 +72,7 @@ class FromTastyTests extends ParallelTesting {
72
72
}
73
73
74
74
@ Test def runTestFromTasty : Unit = {
75
- // Can be reproduced with
75
+ // Failures can be reproduced in isolation with
76
76
// > sbt
77
77
// > dotc -Ythrough-tasty -Ycheck:all <source>
78
78
// > dotr Test
Original file line number Diff line number Diff line change 1
1
object Test {
2
- inline def sum2 (ys : List [Int ]): Int = (1 /: ys)(_ + _)
3
- val h1 : ((List [Int ]) => Int ) = sum2
2
+ inline def sum2 (ys : List [Int ]): Unit = {
3
+ ys.foldLeft(1 )
4
+ }
5
+ val h1 : ((List [Int ]) => Unit ) = sum2
4
6
}
You can’t perform that action at this time.
0 commit comments