Skip to content

Commit f9d6e5f

Browse files
Backport "Move rest of the warn tests from neg to warn (batch 3)" to LTS (#20853)
Backports #19244 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents 413cbb1 + 523b2c5 commit f9d6e5f

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

tests/neg-deep-subtype/i4297.scala

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/neg-macros/i9570.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Error: tests/neg-macros/i9570.scala:15:21 ---------------------------------------------------------------------------
2+
15 | case '{HCons(_,$t)} => // error
3+
| ^
4+
| Use of `_` for lambda in quoted pattern. Use explicit lambda instead or use `$_` to match any term.

tests/neg-macros/i9570.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ object Macros {
1212
private def sizeImpl(e: Expr[HList], n:Int)(using qctx:Quotes): Expr[Int] = {
1313
import quotes.reflect.*
1414
e match {
15-
case '{HCons(_,$t)} => // error if run with fatal warinings in BootstrappedOnlyCompilationTests
15+
case '{HCons(_,$t)} => // error
1616
sizeImpl(t,n+1)
1717
case '{HNil} => Expr(n)
1818
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Error: tests/neg-macros/macro-deprecation.scala:5:18 ----------------------------------------------------------------
2+
5 |inline def f = ${ impl } // error
3+
| ^^^^
4+
| method impl is deprecated

tests/neg-macros/macro-deprecation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
import scala.quoted.*
44

55
inline def f = ${ impl } // error
6-
@deprecated def impl(using Quotes) = '{1}
6+
@deprecated def impl(using Quotes) = '{1}

0 commit comments

Comments
 (0)