Skip to content

Commit 2a21f02

Browse files
author
Niklas Vest
committed
Update automated compilation tests
1 parent b420867 commit 2a21f02

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
-- [E157] Reference Error: ./tests/neg-custom-args/fatal-warnings/i4008.scala:6:6
2-
6 |class ShouldWarn1[A]
1+
-- [E157] Reference Error: tests/neg-custom-args/fatal-warnings/i4008.scala:6:6 ----------------------------------------
2+
6 |class ShouldWarn1[A] // error
33
| ^
4-
|Invalid reference to a type variable "B" found
5-
| in the user-defined error message "An implicit ShouldWarn1[${B}] is not in scope"
6-
| in the @implicitNotFound annotation argument.
4+
| Invalid reference to a type variable "B" found
5+
| in the user-defined error message "An implicit ShouldWarn1[${B}] is not in scope"
6+
| in the @implicitNotFound annotation argument.
77
|
8-
|The variable does not occur in the signature of ShouldWarn1.
9-
-- [E157] Reference Error: ./tests/neg-custom-args/fatal-warnings/i4008.scala:10:6
10-
10 |trait ShouldWarn2[B]
8+
| The variable does not occur in the signature of ShouldWarn1.
9+
-- [E157] Reference Error: tests/neg-custom-args/fatal-warnings/i4008.scala:10:6 ---------------------------------------
10+
10 |trait ShouldWarn2[B] // error
1111
| ^
12-
|Invalid reference to a type variable "A" found
13-
| in the user-defined error message "An implicit ShouldWarn2[${A}] is not in scope"
14-
| in the @implicitNotFound annotation argument.
12+
| Invalid reference to a type variable "A" found
13+
| in the user-defined error message "An implicit ShouldWarn2[${A}] is not in scope"
14+
| in the @implicitNotFound annotation argument.
1515
|
16-
|The variable does not occur in the signature of ShouldWarn2.
17-
-- [E157] Reference Error: ./tests/neg-custom-args/fatal-warnings/i4008.scala:14:6
18-
14 |trait ShouldWarn3[B, C]
16+
| The variable does not occur in the signature of ShouldWarn2.
17+
-- [E157] Reference Error: tests/neg-custom-args/fatal-warnings/i4008.scala:14:6 ---------------------------------------
18+
14 |trait ShouldWarn3[B, C] // error
1919
| ^
20-
|Invalid reference to a type variable "A" found
21-
| in the user-defined error message "An implicit ShouldWarn3[${A},${B}] is not in scope"
22-
| in the @implicitNotFound annotation argument.
20+
| Invalid reference to a type variable "A" found
21+
| in the user-defined error message "An implicit ShouldWarn3[${A},${B}] is not in scope"
22+
| in the @implicitNotFound annotation argument.
2323
|
24-
|The variable does not occur in the signature of ShouldWarn3.
25-
-- [E157] Reference Error: ./tests/neg-custom-args/fatal-warnings/i4008.scala:18:6
26-
18 |class ShouldWarn4[C, D]
24+
| The variable does not occur in the signature of ShouldWarn3.
25+
-- [E157] Reference Error: tests/neg-custom-args/fatal-warnings/i4008.scala:18:6 ---------------------------------------
26+
18 |class ShouldWarn4[C, D] // error
2727
| ^
28-
|Invalid reference to a type variable "A" found
29-
| in the user-defined error message "An implicit ShouldWarn4[${A},${B}] is not in scope"
30-
| in the @implicitNotFound annotation argument.
28+
| Invalid reference to a type variable "A" found
29+
| in the user-defined error message "An implicit ShouldWarn4[${A},${B}] is not in scope"
30+
| in the @implicitNotFound annotation argument.
3131
|
32-
|The variable does not occur in the signature of ShouldWarn4.
33-
-- [E157] Reference Error: ./tests/neg-custom-args/fatal-warnings/i4008.scala:22:6
34-
22 |class ShouldWarn5[C, D]
32+
| The variable does not occur in the signature of ShouldWarn4.
33+
-- [E157] Reference Error: tests/neg-custom-args/fatal-warnings/i4008.scala:22:6 ---------------------------------------
34+
22 |class ShouldWarn5[C, D] // error
3535
| ^
36-
|Invalid reference to a type variable "Abc" found
37-
| in the user-defined error message "An implicit ShouldWarn5[${C},${Abc}] is not in scope"
38-
| in the @implicitNotFound annotation argument.
36+
| Invalid reference to a type variable "Abc" found
37+
| in the user-defined error message "An implicit ShouldWarn5[${C},${Abc}] is not in scope"
38+
| in the @implicitNotFound annotation argument.
3939
|
40-
|The variable does not occur in the signature of ShouldWarn5.
40+
| The variable does not occur in the signature of ShouldWarn5.

tests/neg-custom-args/fatal-warnings/i4008.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33

44
// class, 1TP, invalid ref
55
@annotation.implicitNotFound("An implicit ShouldWarn1[${B}] is not in scope")
6-
class ShouldWarn1[A]
6+
class ShouldWarn1[A] // error
77

88
// trait, 1TP, invalid ref
99
@annotation.implicitNotFound("An implicit ShouldWarn2[${A}] is not in scope")
10-
trait ShouldWarn2[B]
10+
trait ShouldWarn2[B] // error
1111

1212
// trait, 2TP, 1 invalid ref
1313
@annotation.implicitNotFound("An implicit ShouldWarn3[${A},${B}] is not in scope")
14-
trait ShouldWarn3[B, C]
14+
trait ShouldWarn3[B, C] // error
1515

1616
// class, 2TP, 2 invalid refs
1717
@annotation.implicitNotFound("An implicit ShouldWarn4[${A},${B}] is not in scope")
18-
class ShouldWarn4[C, D]
18+
class ShouldWarn4[C, D] // error
1919

2020
// class, 2TP, 1 invalid multi-char refs
2121
@annotation.implicitNotFound("An implicit ShouldWarn5[${C},${Abc}] is not in scope")
22-
class ShouldWarn5[C, D]
22+
class ShouldWarn5[C, D] // error
2323

2424
// trait, 1TP, valid ref
2525
@annotation.implicitNotFound("An implicit ShouldntWarn1[${A}] is not in scope")

0 commit comments

Comments
 (0)