Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependent constructor reproted as not strictly positive when in mutual block #4884

Open
uzytkownik opened this issue Aug 19, 2020 · 1 comment

Comments

@uzytkownik
Copy link

Steps to Reproduce

module repro

-- Warning goes away without mutual
mutual
  data Foo : Type -> Type where
    Foo1    : Foo v

  data Bar : {v : Type} -> Nat -> Foo v -> Type where
    Bar1 : Bar n Foo1
    -- This works:
    -- Bar1 : Bar n v

Expected Behavior

Bar should be strictly positive

Observed Behavior

Bar is reported as possibly not strictly positive when mutual keyword is present.

@uzytkownik
Copy link
Author

Even simpler:

module repro

-- Warning goes away without mutual
mutual
  data Foo : Type where
    Foo1    : Foo

  data Bar : Nat -> Foo -> Type where
    Bar1 : Bar n Foo1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant