File tree 4 files changed +8
-9
lines changed
4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 51
51
echo " testing that missing source file does not crash message rendering"
52
52
clear_out " $OUT "
53
53
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
56
56
" $SBT " " scalac $OUT /A.scala -d $OUT1 "
57
57
rm $OUT /A.scala
58
58
" $SBT " " scalac -classpath $OUT1 -d $OUT1 $OUT /B.scala" > " $tmp " 2>&1 || echo " ok"
59
- cat " $tmp " # for debugging
59
+ # cat "$tmp" # for debugging
60
60
grep -qe " B.scala:2:7" " $tmp "
61
61
grep -qe " This location contains code that was inlined from A.scala:3" " $tmp "
62
62
Original file line number Diff line number Diff line change
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.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments