File tree 4 files changed +8
-14
lines changed
4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 1
- -- Warning : tests/neg-macros/i9570.scala:15:21 -------------------------------------------------------------------------
2
- 15 | case '{HCons(_,$t)} => // warn (in .check file)
1
+ -- Error : tests/neg-macros/i9570.scala:15:21 -- -------------------------------------------------------------------------
2
+ 15 | case '{HCons(_,$t)} => // error
3
3
| ^
4
4
| Use of `_` for lambda in quoted pattern. Use explicit lambda instead or use `$_` to match any term.
5
- No warnings can be incurred under -Werror.
Original file line number Diff line number Diff line change @@ -12,17 +12,15 @@ object Macros {
12
12
private def sizeImpl (e : Expr [HList ], n: Int )(using qctx: Quotes ): Expr [Int ] = {
13
13
import quotes .reflect .*
14
14
e match {
15
- case ' {HCons (_,$t)} => // warn (in .check file)
15
+ case ' {HCons (_,$t)} => // error
16
16
sizeImpl(t,n+ 1 )
17
17
case ' {HNil } => Expr (n)
18
18
}
19
19
}
20
20
21
21
inline def size (inline expr : HList ): Int = {
22
22
$ {sizeImpl(' expr ,0 )}
23
- }
23
+ }
24
24
25
25
}
26
26
}
27
-
28
- // nopos-error No warnings can be incurred under -Werror.
Original file line number Diff line number Diff line change 1
- -- Deprecation Warning : tests/neg-macros/macro-deprecation.scala:5:18 --------------------------------------------------
2
- 5 |inline def f = ${ impl } // warn (in .check file)
1
+ -- Error : tests/neg-macros/macro-deprecation.scala:5:18 -------------- --------------------------------------------------
2
+ 5 |inline def f = ${ impl } // error
3
3
| ^^^^
4
4
| method impl is deprecated
5
- No warnings can be incurred under -Werror.
Original file line number Diff line number Diff line change 2
2
3
3
import scala .quoted .*
4
4
5
- inline def f = $ { impl } // warn (in .check file)
6
- @ deprecated def impl (using Quotes ) = ' {1 }
7
-
8
- // nopos-error No warnings can be incurred under -Werror.
5
+ inline def f = $ { impl } // error
6
+ @ deprecated def impl (using Quotes ) = ' {1 }
You can’t perform that action at this time.
0 commit comments