Skip to content

Commit d4ba939

Browse files
committed
Update check files
1 parent 61f4b7f commit d4ba939

4 files changed

+13
-19
lines changed
Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
-- Error: tests/neg-macros/quoted-pattern-with-bounded-type-params.scala:10:48 -----------------------------------------
2-
10 | case '{ [A <: Int, B] => (x : A, y : A) => $b[A](x, y) : A } => // error
1+
-- Error: tests/neg-macros/quoted-pattern-with-bounded-type-params-regression.scala:11:48 ------------------------------
2+
11 | case '{ [A <: Int, B] => (x : A, y : A) => $b[A](x, y) : A } => ??? // error
33
| ^
44
| Type must be fully defined.
55
| Consider annotating the splice using a type ascription:
66
| (${b}: XYZ).
7-
-- [E006] Not Found Error: tests/neg-macros/quoted-pattern-with-bounded-type-params.scala:11:10 ------------------------
8-
11 | '{ $b[String]("truthy", "falsy") } // error
9-
| ^
10-
| Not found: b
11-
|
12-
| longer explanation available when compiling with `-explain`
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-- Error: tests/neg-custom-args/quoted-pattern-poly/quoted-pattern-with-bounded-type-params.scala:10:50 ----------------
2-
10 | case '{ [A <: Int, B] => (x : A, y : A) => $b[A](x, y) : A } => ??? // error
1+
-- Error: tests/neg-macros/quoted-pattern-with-bounded-type-params.scala:11:50 -----------------------------------------
2+
11 | case '{ [A <: Int, B] => (x : A, y : A) => $b[A](x, y) : A } => ??? // error
33
| ^
44
| Implementation restriction: Type arguments to Open pattern are expected to have no bounds

tests/neg-macros/quoted-pattern-with-type-params-regression.check

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:8:31 --------------------------------------------------
1+
-- Error: tests/neg-macros/quoted-pattern-with-type-params-regression.scala:8:31 ---------------------------------------
22
8 | case '{ [A] => (x : A) => $b[A] : (A => A) } => ??? // error
33
| ^
44
| Type must be fully defined.
55
| Consider annotating the splice using a type ascription:
66
| (${b}: XYZ).
7-
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:9:33 --------------------------------------------------
7+
-- Error: tests/neg-macros/quoted-pattern-with-type-params-regression.scala:9:33 ---------------------------------------
88
9 | case '{ [A] => (x : A) => $b(x) : (A => A) } => ??? // error
99
| ^
1010
| Type variables that this argument depends on are not captured in this hoas pattern
11-
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:10:24 -------------------------------------------------
11+
-- Error: tests/neg-macros/quoted-pattern-with-type-params-regression.scala:10:24 --------------------------------------
1212
10 | case '{ (a:Int) => $b[Int](a) : String } => ??? // error
1313
| ^
1414
| Type must be fully defined.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
-- Error: tests/neg-custom-args/quoted-pattern-poly/quoted-pattern-with-type-params.scala:5:32 -------------------------
2-
5 | case '{ [A] => (x : A) => $b[A] : (A => A) } => ??? // error
1+
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:6:32 --------------------------------------------------
2+
6 | case '{ [A] => (x : A) => $b[A] : (A => A) } => ??? // error
33
| ^^^^^
44
| Implementation restriction: A higher-order pattern must carry value arguments
5-
-- Error: tests/neg-custom-args/quoted-pattern-poly/quoted-pattern-with-type-params.scala:6:33 -------------------------
6-
6 | case '{ [A] => (x : A) => $b(x) : (A => A) } => ??? // error
5+
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:7:33 --------------------------------------------------
6+
7 | case '{ [A] => (x : A) => $b(x) : (A => A) } => ??? // error
77
| ^
88
| Type variables that this argument depends on are not captured in this hoas pattern
9-
-- Error: tests/neg-custom-args/quoted-pattern-poly/quoted-pattern-with-type-params.scala:7:26 -------------------------
10-
7 | case '{ (a:Int) => $b[Int](a) : String } => ??? // error
9+
-- Error: tests/neg-macros/quoted-pattern-with-type-params.scala:8:26 --------------------------------------------------
10+
8 | case '{ (a:Int) => $b[Int](a) : String } => ??? // error
1111
| ^^^
1212
| Type arguments of a hoas pattern needs to be defined inside the quoted pattern

0 commit comments

Comments
 (0)