diff options
| author | Alasdair Armstrong | 2017-08-02 18:13:33 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-08-02 18:13:33 +0100 |
| commit | 0e27492d76cf5ac1abdde6a45a4c05652ba74c2a (patch) | |
| tree | 27971c474036d0ae42a69d4fdcd83d8eb7b0c6c0 /test | |
| parent | 277b41e5f5900625c51a301a492ea9400cf2f691 (diff) | |
Test for overloaded function with varying arities
Diffstat (limited to 'test')
| -rw-r--r-- | test/typecheck/pass/varity.sail | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/typecheck/pass/varity.sail b/test/typecheck/pass/varity.sail new file mode 100644 index 00000000..d196f777 --- /dev/null +++ b/test/typecheck/pass/varity.sail @@ -0,0 +1,15 @@ + +val int -> unit effect pure f1 +val (int, int) -> unit effect pure f2 +val (int, int, int) -> unit effect pure f3 + +overload f [f1; f2; f3] + +val unit -> unit effect pure test + +function test () = +{ + f(1); + f(2, 3); + f(4, 5, 6); +} |
