diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2025-11-04 18:58:28 -0800 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2025-11-04 21:05:18 -0800 |
| commit | eaa183b7dfc841df75d42ace7a90ada1e40ff282 (patch) | |
| tree | 1d627b8088d5996a7bbf7c0a7439360e31de3dc3 /tests/24-functor.sml | |
| parent | c48a992a6ed6ebd79c344b37364a680ddd948dea (diff) | |
| download | sml-main.tar.zst | |
Diffstat (limited to 'tests/24-functor.sml')
| -rw-r--r-- | tests/24-functor.sml | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/24-functor.sml b/tests/24-functor.sml deleted file mode 100644 index d18337e..0000000 --- a/tests/24-functor.sml +++ /dev/null @@ -1,17 +0,0 @@ -signature MagicNumber = sig - val n : int -end - -functor Exiter(N : MagicNumber) = struct - fun exit _ = __builtin "exit" N.n -end - -structure FourtyTwo = struct - val a = 16 - val n = 42 - val z = 38 -end - -structure FourtyTwoExiter = Exiter(FourtyTwo) - -val _ = FourtyTwoExiter.exit () |
