unison/unison-src/errors/rank2a.u
2019-04-03 15:00:05 -04:00

9 lines
210 B
Plaintext

-- We expect this to not typecheck since a `Nat -> Nat` cannot
-- be passed where a `∀ a . a -> a` is expected.
rank2a : (Nat -> Nat) -> Nat
rank2a =
inner : (∀ a . a -> a) -> Nat
inner f = 42
inner