UlfNorell / agda-test

Agda test
0 stars 0 forks source link

Error when using copatterns and dummy patterns #905

Closed UlfNorell closed 10 years ago

UlfNorell commented 10 years ago

From guillaum...@gmail.com on September 18, 2013 16:32:15

{-# OPTIONS --copatterns #-}

module Test where

{- Globular types as a coinductive record -} record Glob : Set1 where coinductive field Ob : Set Hom : (a b : Ob) → Glob open Glob public

record Unit : Set where

{- The terminal globular type -} Unit-glob : Glob Ob Unit-glob = Unit Hom Unit-glob a _ = Unit-glob


The previous module fails with the following error

Not implemented: copatterns with patterns before the principal argument when scope checking the declaration mutual Ob Unit-glob = Unit Hom Unit-glob a _ = Unit-glob

Changing the underscore to a dummy name works.

Original issue: http://code.google.com/p/agda/issues/detail?id=905

UlfNorell commented 10 years ago

From guillaum...@gmail.com on September 18, 2013 07:42:50

Sorry, I was not using the last version of copatterns, it works now.

UlfNorell commented 10 years ago

From nils.anders.danielsson on September 19, 2013 06:35:34

Status: Invalid