Skip to content

Commit 129d056

Browse files
nicolasstuckimichelou
authored andcommitted
Update test for scala#6371
1 parent ff1bf75 commit 129d056

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

project/scripts/cmdTests

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ fi
5151
echo "testing that missing source file does not crash message rendering"
5252
clear_out "$OUT"
5353
clear_out "$OUT1"
54-
cp tests/neg/i6371/A_1.scala $OUT/A.scala
55-
cp tests/neg/i6371/B_2.scala $OUT/B.scala
54+
cp tests/neg-macros/i6371/A_1.scala $OUT/A.scala
55+
cp tests/neg-macros/i6371/B_2.scala $OUT/B.scala
5656
"$SBT" "scalac $OUT/A.scala -d $OUT1"
5757
rm $OUT/A.scala
5858
"$SBT" "scalac -classpath $OUT1 -d $OUT1 $OUT/B.scala" > "$tmp" 2>&1 || echo "ok"
59-
cat "$tmp" # for debugging
59+
# cat "$tmp" # for debugging
6060
grep -qe "B.scala:2:7" "$tmp"
6161
grep -qe "This location contains code that was inlined from A.scala:3" "$tmp"
6262

tests/neg-macros/i6371/A_1.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import scala.quoted.*
2+
object A {
3+
inline def foo(a: Any): Unit = ${ crashOnInline }
4+
def crashOnInline(using Quotes): Expr[Unit] = ???
5+
}
File renamed without changes.

tests/neg/i6371/A_1.scala

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)