Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / fail / exp.sml
CommitLineData
7f918cf1
CE
1val _ = 1 andalso true
2
3val _ = true andalso 1
4
5val _ = 13 14
6
7val _ = (op +) (1, true)
8
9val _ =
10 case "foo" of
11 13 => 14
12
13val _ = 13: bool
14
15val _ = + 1 2
16
17val _ = 1 handle _ => "foo"
18
19val _ = () handle _: int => ()
20
21val _ = if "foo" then () else ()
22
23val _ = if true then 1 else "foo"
24
25val _ = [1, 2, "foo"]
26
27val _ = 1 orelse true
28
29val _ = true orelse 1
30
31val _ = raise 13
32
33val _ = "foo" + "bar"
34
35val _ = while "foo" do ()
36
37val _ =
38 fn _: int => ()
39 | _: bool => ()
40
41val _ =
42 fn 1 => "foo"
43 | 2 => true
44