Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / where-and.sml
CommitLineData
7f918cf1
CE
1(* where-and.sml *)
2
3(* Checks parsing of where type ... and derived form. *)
4
5signature S = sig type t and u end
6
7signature T = S where type t = int and type u = bool
8and U = S where type t = int and type u = bool
9
10signature V =
11sig
12 structure A : S where type t = int and type u = bool
13 and B : S where type t = int and type u = bool
14end
15
16structure A : S where type t = int and type u = bool =
17struct
18 type t = int
19 type u = bool
20end
21
22structure B = A : S where type t = int and type u = bool
23and C = A : S where type t = int and type u = bool
24
25functor F(X : S where type t = int and type u = bool) :
26 S where type t = int and type u = bool =
27X : S where type t = int and type u = bool
28and G(Y : S where type t = int and type u = bool) :
29 S where type t = int and type u = bool =
30Y : S where type t = int and type u = bool
31
32signature W =
33sig
34 type t and u and v
35end
36
37signature W' = W where type t = int and type u = int where type v = int
38and W'' = W;