bc
[clean-tests.git] / test.icl
1 module test
2
3 import StdEnv
4
5 import graph_copy_with_names, symbols_in_program
6 import System.CommandLine
7
8 test :: !{#Symbol} a -> a
9 test symbols a
10 # (a, b, c) = copy_to_string_with_names a
11 # (a, r) = copy_from_string_with_names a b c symbols
12 = a
13
14 polyid :: (A.a: a -> a) -> (Int, Bool)
15 polyid f = (f 42, f True)
16
17 Start w
18 # ([argv0:_], w) = getCommandLine w
19 # (symbols, w) = accFiles (read_symbols argv0) w
20 = test symbols (polyid id)