aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/failure/circular_subtyping.v
blob: 9eb7e3bc2031793ea10fcc03e122f767756c45f0 (plain)
1
2
3
4
5
6
7
8
9
10
(* subtyping verification in presence of  pseudo-circularity*)
Module Type S. End S.
Module Type T. Declare Module M:S. End T.
Module N:S. End N.
Module NN <: T. Module M:=N. End NN.

Fail Module P <: T with Module M:=NN := NN.

Module F (X:S) (Y:T with Module M:=X). End F.
Fail Module G := F N N.