Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / open.sml
CommitLineData
7f918cf1
CE
1(* open.sml *)
2
3(* Checks scoping rules of open. *)
4
5structure A = struct structure B = struct val x = 1 end end
6structure B = struct val x = 0.1 end
7
8open A B
9
10val y = B.x + 1
11val z = x + 1.0;