Skip to content

Commit

Permalink
Add regression test for scala#9228
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Jan 6, 2021
1 parent 0dc824c commit 46e4c96
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/pos/i9228.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
object ABug {

class Graph { class Node }

def ltol[O](tb: List[O]): List[O] = ???

def gtoll(using g: Graph): List[List[g.Node]] = ???

object graph extends Graph
import graph._
given graph.type = graph

val osq: List[List[Node]] = gtoll

val r: List[List[Any ]] = ltol(gtoll)
val q: List[List[Node]] = ltol(gtoll)

}

0 comments on commit 46e4c96

Please sign in to comment.