Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute isCompleted together with typeParams for kind-arity check
Being complete is a dynamic property. If we take `typeParams` before being complete they are unusable. But inbetween we might get completed and suddenly start passing the check. This is why the problem manifests in the second parameter of `S`.
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
object Test { | ||
trait Foo[S[_[_], _[_]]] extends Bar[S] { | ||
def m[F[_]](x: S[({ type G[A] = Bar[S] })#G, F]): Unit | ||
} | ||
trait Bar[S[_[_], _[_]]] { | ||
def m[F[_]](x: S[({ type G[A] = Bar[S] })#G, F]): Unit | ||
} | ||
} |