Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / fail / dec.sml
CommitLineData
7f918cf1
CE
1fun F.f () = ()
2
3fun f = ()
4
5fun f _ = ()
6 | f _ _ = ()
7
8fun f _ = ()
9 | g _ = ()
10 | h _ = ()
11
12fun f (): bool = 13
13
14fun f (_: bool) = ()
15 | f (_: int) = ()
16
17fun f (): int = 13
18 | f (): bool = true
19
20fun f (x: int) = f true
21
22val 'a x: 'a -> 'a = (fn y => y) (fn z => z)
23
24val rec (x: int) = fn z => z
25
26val x: int = true