Skip to content

Commit 0c81f24

Browse files
Debugging
dotc -Xprint:front -Ythrough-tasty /home/olivier/workspace/dotty/tests/pos/inline-i2570.scala
1 parent b9db9f6 commit 0c81f24

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

compiler/test/dotty/tools/dotc/FromTastyTests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class FromTastyTests extends ParallelTesting {
2121

2222

2323
@Test def posTestFromTasty: Unit = {
24-
// Can be reproduced with
24+
// Failures can be reproduced in isolation with
2525
// > sbt
2626
// > dotc -Ythrough-tasty -Ycheck:all <source>
2727

@@ -72,7 +72,7 @@ class FromTastyTests extends ParallelTesting {
7272
}
7373

7474
@Test def runTestFromTasty: Unit = {
75-
// Can be reproduced with
75+
// Failures can be reproduced in isolation with
7676
// > sbt
7777
// > dotc -Ythrough-tasty -Ycheck:all <source>
7878
// > dotr Test

tests/pos/inline-i2570.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
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
46
}

0 commit comments

Comments
 (0)