Skip to content

Commit bf84554

Browse files
committed
Test for #7087
1 parent 2ea7693 commit bf84554

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/pos/i7087.scala

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type Foo
2+
3+
type G[A]
4+
5+
type F[T] = T match {
6+
case G[a] => String
7+
}
8+
9+
given A {
10+
def (tup: T) g[T] given (Foo: F[T]) = ???
11+
}
12+
13+
def f(x: G[Int]) given (Foo: String) = x.g

0 commit comments

Comments
 (0)