~ubuntu-branches/ubuntu/wily/agda/wily-proposed

« back to all changes in this revision

Viewing changes to test/fail/Issue659.agda

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-08-05 06:38:12 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20140805063812-io8e77niomivhd49
Tags: 2.4.0.2-1
* [6e140ac] Imported Upstream version 2.4.0.2
* [2049fc8] Update Build-Depends to match control
* [93dc4d4] Install the new primitives
* [e48f40f] Fix typo dev→doc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
module Issue659 where
2
 
 
3
 
postulate
4
 
  Level : Set
5
 
  lzero : Level
6
 
  lsuc  : Level → Level
7
 
  _⊔_   : Level → Level → Level
8
 
 
9
 
{-# BUILTIN LEVEL     Level #-}
10
 
{-# BUILTIN LEVELZERO lzero #-}
11
 
{-# BUILTIN LEVELSUC  lsuc  #-}
12
 
{-# BUILTIN LEVELMAX  _⊔_   #-}
13
 
 
14
 
record R (ℓ : Level) : Set ℓ where
15
 
 
16
 
postulate
17
 
  r : ∀ ℓ → R ℓ
18
 
 
19
 
module M (r : ∀ ℓ → R ℓ) where
20
 
 
21
 
  data D (ℓ : Level) : Set ℓ where
22
 
 
23
 
  id : ∀ {a} {A : Set a} → A → A
24
 
  id x = x
25
 
 
26
 
  data K : Set where
27
 
    k₁ k₂ : K
28
 
 
29
 
  P : ∀ {ℓ} → K → Set ℓ → Set ℓ
30
 
  P k₁ A = A → A
31
 
  P k₂ A = D _
32
 
 
33
 
open M r
34
 
 
35
 
postulate
36
 
  Foo : ∀ {k a} {A : Set a} → P k A → Set
37
 
 
38
 
Bar : Set
39
 
Bar = Foo M.id
40
 
 
41
 
 
42
 
 
43
 
--