Skip to content

Commit 0cf7ce3

Browse files
Merge pull request #6445 from dotty-staging/fix-#2774
Fix #2774: Add regression test
2 parents 44f9624 + ae30ad9 commit 0cf7ce3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pos/i2774.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
object Test {
2+
trait T; trait Q
3+
val a: given T => given Q => Int = 1
4+
5+
implied for Q = new Q {}
6+
val i1: Int = a given (new T{})
7+
implied for T = new T {}
8+
val i2: Int = a
9+
10+
def a given (t: T) given (q: Q): Int = 1
11+
12+
}

0 commit comments

Comments
 (0)