Skip to content

Commit c47e06f

Browse files
Merge pull request #8909 from dotty-staging/fix-#8894
Fix #8894: Add regression test
2 parents 976f4c8 + 330717b commit c47e06f

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)