Skip to content

Commit 2ea7693

Browse files
committed
Add test
1 parent c3bce86 commit 2ea7693

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/pos/i7084.scala

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
object Test {
2+
3+
type Foo
4+
5+
given A {
6+
def (y: Any) g given Foo: Any = ???
7+
}
8+
9+
def f(x: Any) given Foo: Any = {
10+
val y = x.g
11+
y.g
12+
13+
x.g.g
14+
}
15+
}

0 commit comments

Comments
 (0)