egison-5.1.0: test/type-error/22-patfun-linearity-dup.egi
--
-- Pattern function linearity, duplicated parameter (PATFUN-DEF side
-- condition; review M2(ii)). `p` occurs twice, so a single argument
-- pattern would be expanded twice along one matching path.
--
-- Expected: Type error (parameter linearity: uses ~p, ~p)
--
def pattern twice {a} (p: a) : [a] := ~p :: ~p :: _