We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d889b5c commit 80b8ec3Copy full SHA for 80b8ec3
tests/neg-macros/hoas-pattern-with-type-params.scala
@@ -4,6 +4,8 @@ def test(body: Expr[Any])(using Quotes): Expr[String] =
4
body match
5
case '{ [A] => (x : A) => $b[A] : A => A } => // error // error
6
Expr("Hoas pattern should always take value params")
7
+ case '{ [A] => (x : A) => $b(x) : A => A } => // error // error
8
+ Expr("`A` should be in type arguments because `x` depends on it")
9
case '{ (a:Int) => $b[Int](a) : String } => // error
10
Expr("Type params of a hoas pattern should be introduced inside the quote")
11
case _ => Expr("not matched")
0 commit comments