Backport from sid to buster
[hcoop/debian/mlton.git] / regression / withtype3.sml
CommitLineData
7f918cf1
CE
1(* withtype3.sml *)
2
3(* Checks scoping rules of withtype *)
4
5type u = real
6
7datatype t = T of u * v
8withtype u = int
9and v = u
10
11val z = T (1, 1.0)
12
13val x : v = 1.0
14val y : u = 1
15
16fun uEq (a: u, b: u) = a = b