packages feed

Agda-2.3.2.2: test/fail/UnequalRelevance.agda

module UnequalRelevance where

postulate
  A : Set
  f : A -> A
  g : (.A -> A) -> A -> A

-- this should fail because
-- cannot use relevant function where irrelevant is needed
h : A -> A
h = g f  -- error: function types are not equal because one is relevant and the other not