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

Scope error for some reason #2211

Closed
treeowl opened this issue Apr 29, 2015 · 0 comments
Closed

Scope error for some reason #2211

treeowl opened this issue Apr 29, 2015 · 0 comments

Comments

@treeowl
Copy link
Contributor

treeowl commented Apr 29, 2015

idris: Scope error in !!V 2!!
module Impl

%default total

Rel : Type -> Type
Rel a = a -> a -> Type

Symmetric : Rel a -> Type
Symmetric {a} rel = {x,y : a} -> x `rel` y -> y `rel` x

Whatever : Rel a -> Type

blah : Whatever rel -> Symmetric rel

foo : {rel : Rel a} -> Whatever rel -> (x,y:a) -> x `rel` y -> y `rel` x
foo {rel} whatever x y xy = blah whatever xy
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