Skip to content

Commit 330717b

Browse files
committed
Fix #8894: Add regression test
It was fixed in #8884
1 parent 9f49639 commit 330717b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/neg/i8894.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
trait Extractor {
2+
inline def unapplySeq(inline tn: String): Option[Seq[String]]
3+
}
4+
5+
transparent inline def (inline sc: StringContext).poql: Extractor = new Extractor {
6+
inline def unapplySeq(inline tn: String): Option[Seq[String]] = ??? // error: Implementation restriction: nested inline methods are not supported
7+
}
8+
9+
object x {
10+
"x" match {
11+
case poql" $x" => x // error: Deferred inline method unapplySeq in trait Extractor cannot be invoked
12+
}
13+
}

0 commit comments

Comments
 (0)