agda-kernel icon indicating copy to clipboard operation
agda-kernel copied to clipboard

wrong hole order in the presence of where clauses

Open lclem opened this issue 5 years ago • 0 comments

The holes in the following fragment

module code.hole-test where

f : ∀ {A : Set} → A → A
f a = ? where
    g : ∀ {B : Set} → B → B
    g b = ?

are reported by Agda as

?0 : B
?1 : A

while the kernel expects them the other way around. Fixing this requires analysing the nesting structure of the where clauses.

lclem avatar Dec 30 '19 09:12 lclem