|
1 |
| -Macros_Test_2.scala:2: error: macro implementation has wrong shape: |
2 |
| - required: (c: scala.reflect.macros.BlackboxContext): c.Expr[Any] |
3 |
| - or : (c: scala.reflect.macros.BlackboxContext): c.Tree |
4 |
| - found : (c: scala.reflect.macros.BlackboxContext)(implicit evidence$2: Numeric[U]): c.universe.Literal |
5 |
| -macro implementations cannot have implicit parameters other than WeakTypeTag evidences |
| 1 | +Macros_Test_2.scala:2: error: macro implementations cannot have implicit parameters other than WeakTypeTag evidences |
6 | 2 | def foo[U] = macro Impls1.foo[U]
|
7 |
| - ^ |
8 |
| -Macros_Test_2.scala:6: error: macro implementation has wrong shape: |
| 3 | + ^ |
| 4 | +Macros_Test_2.scala:6: error: macro implementation has incompatible shape: |
9 | 5 | required: (c: scala.reflect.macros.BlackboxContext): c.Expr[Any]
|
10 | 6 | or : (c: scala.reflect.macros.BlackboxContext): c.Tree
|
11 | 7 | found : : Nothing
|
12 | 8 | number of parameter sections differ
|
13 | 9 | def foo = macro Impls2.foo
|
14 |
| - ^ |
15 |
| -Macros_Test_2.scala:10: error: macro implementation has wrong shape: |
| 10 | + ^ |
| 11 | +Macros_Test_2.scala:10: error: macro implementation has incompatible shape: |
16 | 12 | required: (c: scala.reflect.macros.BlackboxContext): c.Expr[Any]
|
17 | 13 | or : (c: scala.reflect.macros.BlackboxContext): c.Tree
|
18 | 14 | found : (c: scala.reflect.api.Universe): Nothing
|
19 | 15 | type mismatch for parameter c: scala.reflect.macros.BlackboxContext does not conform to scala.reflect.api.Universe
|
20 | 16 | def foo = macro Impls3.foo
|
21 |
| - ^ |
22 |
| -Macros_Test_2.scala:14: error: macro implementation has wrong shape: |
| 17 | + ^ |
| 18 | +Macros_Test_2.scala:14: error: macro implementation has incompatible shape: |
23 | 19 | required: (c: scala.reflect.macros.BlackboxContext): c.Expr[Any]
|
24 | 20 | or : (c: scala.reflect.macros.BlackboxContext): c.Tree
|
25 | 21 | found : (cs: scala.reflect.macros.BlackboxContext*): Nothing
|
26 | 22 | types incompatible for parameter cs: corresponding is not a vararg parameter
|
27 | 23 | def foo = macro Impls4.foo
|
28 |
| - ^ |
29 |
| -Macros_Test_2.scala:18: error: macro implementation has wrong shape: |
| 24 | + ^ |
| 25 | +Macros_Test_2.scala:18: error: macro implementation has incompatible shape: |
30 | 26 | required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Any]): c.Expr[Any]
|
31 | 27 | or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree): c.Tree
|
32 | 28 | found : (c: scala.reflect.macros.BlackboxContext): Nothing
|
33 | 29 | number of parameter sections differ
|
34 | 30 | def foo(x: Any) = macro Impls5.foo
|
35 |
| - ^ |
36 |
| -Macros_Test_2.scala:22: error: macro implementation has wrong shape: |
37 |
| - required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int]): c.Expr[Unit] |
38 |
| - or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree): c.Tree |
39 |
| - found : (c: scala.reflect.macros.BlackboxContext)(implicit x: c.Expr[Int]): c.Expr[Unit] |
40 |
| -macro implementations cannot have implicit parameters other than WeakTypeTag evidences |
| 31 | + ^ |
| 32 | +Macros_Test_2.scala:22: error: macro implementations cannot have implicit parameters other than WeakTypeTag evidences |
41 | 33 | def foo[U](x: Int) = macro Impls6.foo[T, U]
|
42 |
| - ^ |
43 |
| -Macros_Test_2.scala:26: error: macro implementation has wrong shape: |
| 34 | + ^ |
| 35 | +Macros_Test_2.scala:26: error: macro implementation has incompatible shape: |
44 | 36 | required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int]): c.Expr[Any]
|
45 | 37 | or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree): c.Tree
|
46 | 38 | found : (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int], y: c.Expr[Int]): Nothing
|
47 | 39 | parameter lists have different length, found extra parameter y: c.Expr[Int]
|
48 | 40 | def foo(x: Int) = macro Impls7.foo
|
49 |
| - ^ |
50 |
| -Macros_Test_2.scala:30: error: macro implementation has wrong shape: |
| 41 | + ^ |
| 42 | +Macros_Test_2.scala:30: error: macro implementation has incompatible shape: |
51 | 43 | required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int]): c.Expr[Any]
|
52 | 44 | or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree): c.Tree
|
53 | 45 | found : (c: scala.reflect.macros.BlackboxContext)(x: c.universe.Symbol): Nothing
|
54 | 46 | type mismatch for parameter x: c.Expr[Int] does not conform to c.universe.Symbol
|
55 | 47 | def foo(x: Int) = macro Impls8.foo
|
56 |
| - ^ |
57 |
| -Macros_Test_2.scala:34: error: macro implementation has wrong shape: |
| 48 | + ^ |
| 49 | +Macros_Test_2.scala:34: error: macro implementation has incompatible shape: |
58 | 50 | required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int], y: c.Expr[Int]): c.Expr[Any]
|
59 | 51 | or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree, y: c.Tree): c.Tree
|
60 | 52 | found : (c: scala.reflect.macros.BlackboxContext)(xs: c.Expr[Int]*): Nothing
|
61 | 53 | parameter lists have different length, required extra parameter y: c.Expr[Int]
|
62 | 54 | def foo(x: Int, y: Int) = macro Impls9.foo
|
63 |
| - ^ |
64 |
| -Macros_Test_2.scala:38: error: macro implementation has wrong shape: |
| 55 | + ^ |
| 56 | +Macros_Test_2.scala:38: error: macro implementation has incompatible shape: |
65 | 57 | required: (c: scala.reflect.macros.BlackboxContext)(x: c.Expr[Int], y: c.Expr[Int]): c.Expr[Any]
|
66 | 58 | or : (c: scala.reflect.macros.BlackboxContext)(x: c.Tree, y: c.Tree): c.Tree
|
67 | 59 | found : (c: scala.reflect.macros.BlackboxContext)(y: c.Expr[Int], x: c.Expr[Int]): Nothing
|
68 | 60 | parameter names differ: x != y
|
69 | 61 | def foo(x: Int, y: Int) = macro Impls10.foo
|
70 |
| - ^ |
71 |
| -Macros_Test_2.scala:42: error: macro implementation has wrong shape: |
| 62 | + ^ |
| 63 | +Macros_Test_2.scala:42: error: macro implementation has incompatible shape: |
72 | 64 | required: (c: scala.reflect.macros.BlackboxContext): c.Expr[Any]
|
73 | 65 | or : (c: scala.reflect.macros.BlackboxContext): c.Tree
|
74 | 66 | found : (c: scala.reflect.macros.BlackboxContext)(U: c.universe.Type): Nothing
|
75 | 67 | number of parameter sections differ
|
76 | 68 | def foo[U] = macro Impls11.foo[U]
|
77 |
| - ^ |
| 69 | + ^ |
78 | 70 | Macros_Test_2.scala:46: error: type arguments [U] do not conform to method foo's type parameter bounds [U <: String]
|
79 | 71 | def foo[U] = macro Impls12.foo[U]
|
80 | 72 | ^
|
81 | 73 | Macros_Test_2.scala:50: error: type arguments [U] do not conform to method foo's type parameter bounds [U <: String]
|
82 | 74 | def foo[U <: Int] = macro Impls13.foo[U]
|
83 | 75 | ^
|
84 |
| -Macros_Test_2.scala:54: error: wrong number of type parameters for method foo: [U](c: scala.reflect.macros.BlackboxContext)(implicit evidence$4: c.WeakTypeTag[U])Nothing |
| 76 | +Macros_Test_2.scala:54: error: macro implementation reference has too few type arguments for method foo: [U](c: scala.reflect.macros.BlackboxContext)(implicit evidence$4: c.WeakTypeTag[U])Nothing |
85 | 77 | def foo = macro Impls14.foo
|
86 |
| - ^ |
87 |
| -Macros_Test_2.scala:59: error: wrong number of type parameters for method foo: [T, U, V](c: scala.reflect.macros.BlackboxContext)(implicit evidence$5: c.WeakTypeTag[T], implicit evidence$6: c.WeakTypeTag[U], implicit V: c.WeakTypeTag[V])c.Expr[Unit] |
| 78 | + ^ |
| 79 | +Macros_Test_2.scala:59: error: macro implementation reference has too few type arguments for method foo: [T, U, V](c: scala.reflect.macros.BlackboxContext)(implicit evidence$5: c.WeakTypeTag[T], implicit evidence$6: c.WeakTypeTag[U], implicit V: c.WeakTypeTag[V])c.Expr[Unit] |
88 | 80 | def foo15[V] = macro Impls15.foo
|
89 |
| - ^ |
| 81 | + ^ |
90 | 82 | Macros_Test_2.scala:60: error: wrong number of type parameters for method foo: [T, U, V](c: scala.reflect.macros.BlackboxContext)(implicit evidence$7: c.WeakTypeTag[T], implicit evidence$8: c.WeakTypeTag[U], implicit V: c.WeakTypeTag[V])c.Expr[Unit]
|
91 | 83 | def foo16[V] = macro Impls16.foo[V]
|
92 | 84 | ^
|
|
0 commit comments