Import Debian changes 20180207-1
[hcoop/debian/mlton.git] / regression / withtype5.sml
CommitLineData
7f918cf1
CE
1(* withtype.sml *)
2
3(* Checks scoping rules of withtype *)
4
5type u = int
6
7datatype t = T of u * v
8withtype u = bool
9and v = u
10
11val z = T(true, 6)
12val y : u = true
13val x : v = 1
14
15fun tEq (a: t, b: t) = a = b
16fun uEq (a: u, b: u) = a = b
17fun vEq (a: v, b: v) = a = b