Skip to content

Commit aba0c58

Browse files
authored
Merge pull request #8420 from dotty-staging/fix-#3657
Fix #3657: Add test
2 parents 5c389c6 + 97df0df commit aba0c58

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/neg/i3657.scala

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
object App {
2+
def main(args: Array[String]): Unit = {
3+
trait ModuleSig {
4+
type F[_, _]
5+
type G[_]
6+
type H[_]
7+
8+
trait FooSig {
9+
type Type = F[G[Int], H[Int]]
10+
def subst[F[_]](fa: F[Int]): F[Type]
11+
}
12+
13+
val Foo: FooSig
14+
}
15+
val Module: ModuleSig = new ModuleSig {
16+
type F[x[_]] = Int // error
17+
18+
val Foo: FooSig = new FooSig {
19+
// type Type = Int
20+
def subst[F[_]](fa: F[Int]): F[Type] = fa
21+
}
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)