Skip to content

Commit 46e4c96

Browse files
committed
Add regression test for #9228
Fixes #9228
1 parent 0dc824c commit 46e4c96

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/pos/i9228.scala

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
object ABug {
2+
3+
class Graph { class Node }
4+
5+
def ltol[O](tb: List[O]): List[O] = ???
6+
7+
def gtoll(using g: Graph): List[List[g.Node]] = ???
8+
9+
object graph extends Graph
10+
import graph._
11+
given graph.type = graph
12+
13+
val osq: List[List[Node]] = gtoll
14+
15+
val r: List[List[Any ]] = ltol(gtoll)
16+
val q: List[List[Node]] = ltol(gtoll)
17+
18+
}

0 commit comments

Comments
 (0)