Skip to content

Commit

Permalink
Update test for scala#6371
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasstucki authored and michelou committed Apr 25, 2022
1 parent ff1bf75 commit 129d056
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions project/scripts/cmdTests
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ fi
echo "testing that missing source file does not crash message rendering"
clear_out "$OUT"
clear_out "$OUT1"
cp tests/neg/i6371/A_1.scala $OUT/A.scala
cp tests/neg/i6371/B_2.scala $OUT/B.scala
cp tests/neg-macros/i6371/A_1.scala $OUT/A.scala
cp tests/neg-macros/i6371/B_2.scala $OUT/B.scala
"$SBT" "scalac $OUT/A.scala -d $OUT1"
rm $OUT/A.scala
"$SBT" "scalac -classpath $OUT1 -d $OUT1 $OUT/B.scala" > "$tmp" 2>&1 || echo "ok"
cat "$tmp" # for debugging
# cat "$tmp" # for debugging
grep -qe "B.scala:2:7" "$tmp"
grep -qe "This location contains code that was inlined from A.scala:3" "$tmp"

Expand Down
5 changes: 5 additions & 0 deletions tests/neg-macros/i6371/A_1.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import scala.quoted.*
object A {
inline def foo(a: Any): Unit = ${ crashOnInline }
def crashOnInline(using Quotes): Expr[Unit] = ???
}
File renamed without changes.
6 changes: 0 additions & 6 deletions tests/neg/i6371/A_1.scala

This file was deleted.

0 comments on commit 129d056

Please sign in to comment.