Idris2-boot/tests/idris2/basic010/Comp.idr
Edwin Brady b0cad15c65 Refine dot pattern rules
Only valid if unifying the pattern at the end doesn't solve any
metavariables. Also when elaborating applications of fromInteger etc to
constants on the LHS we need to be in expression mode, then reduce the
result later.
2019-06-27 19:16:33 +01:00

8 lines
202 B
Idris

-- Testing that unbound implicits get lifted appropriately
-- Should all be at the top
comp : (b -> c) -> (a -> b) -> a -> c
-- Leave 'a' where it is
comp2 : (b -> c) -> {a : _} -> (a -> b) -> a -> c