Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / fail / overloading-context.2.sml
CommitLineData
7f918cf1
CE
1(* This program must fail because the semicolon means that the declarations
2 * must be treated as two topdecs, not a single topdec leading to two strdec's.
3 * This follows from the restriction on page 14 of the Definition that states
4 * "No topdec may contain as an initial segment, a strdec followed by a
5 * semicolon"
6 *)
7fun double x = x + x;
8val y = double 2.0