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

Eta-expanded implicit patterns are not used for instance search #1613

Closed
GoogleCodeExporter opened this Issue Aug 8, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 8, 2015

-- due to issue 473 (eager eta-expansion of record vars), instance search fails

postulate A : Set

record R : Set where
  constructor c
  field f : A

open R {{...}}

works : {{_ : R}} → A
works = f

works' : {{_ : R}} → Set → A
works' B = f

test : R → A
test _ = f

-- No variable of type R was found in scope.
-- when checking that the expression f has type A

test1 : {_ : R} → Set → A
test1 B = f

-- No variable of type R was found in scope.
-- when checking that the expression f has type A

Original issue reported on code.google.com by andreas....@gmail.com on 20 Jul 2015 at 3:12

@jespercockx

This comment has been minimized.

Copy link
Contributor

jespercockx commented Jan 6, 2016

Fixed because new unifier no longer eta-expands eagerly. See 221058e.

@jespercockx jespercockx closed this Jan 6, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment