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 b28d4c1 commit 5bc43d3Copy full SHA for 5bc43d3
tests/pos/i18123.scala
@@ -0,0 +1,25 @@
1
+// may not compile anymore in Scala 3.4+
2
+package pkg
3
+
4
+trait P[+T]
5
6
+extension [T](inline parse0: P[T])
7
+ inline def | [V >: T](inline other: P[V]): P[V] = ???
8
9
+extension [T](inline parse0: => P[T])
10
+ inline def rep[V](inline min: Int = 0)(using repeater: Implicits.Repeater[T, V]): P[V] = ???
11
12
+object Implicits:
13
+ trait Repeater[-T, R]
14
+ object Repeater:
15
+ implicit def GenericRepeaterImplicit[T]: Repeater[T, Seq[T]] = ???
16
17
+sealed trait RegexTree
18
+abstract class Node extends RegexTree
19
+class CharClassIntersection() extends Node
20
21
+def classItem: P[RegexTree] = ???
22
+def charClassIntersection: P[CharClassIntersection] = ???
23
24
+def x =
25
+ (charClassIntersection.rep() | classItem.rep())
0 commit comments