Skip to content

Commit 6c75415

Browse files
authored
Merge pull request #3740 from dotty-staging/fix-#3139
Fix #3139: Add regression test
2 parents f0cf6f6 + 121e1eb commit 6c75415

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/pos/i3139.scala

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
trait Foo[T] {
2+
type Base[A]
3+
}
4+
5+
object Test {
6+
def foo[T](ev: Foo[T]): Foo[T] { type Base[A] = ev.Base[A] } = ev
7+
}
8+
9+
object Test2 {
10+
def foo[T](ev: Foo[T]): Foo[T] { type Base = ev.Base } = ev
11+
}

0 commit comments

Comments
 (0)