idris-lang / Idris2

A purely functional programming language with first class types
https://idris-lang.org/
Other
2.46k stars 369 forks source link

Update typedd.rst #3316

Closed m-rinaldi closed 2 weeks ago

m-rinaldi commented 2 weeks ago

Description

The following length:

length : Vect n elem -> Nat
length {n} xs = n

produces the following error on Idris 2:

Error: While processing right hand side of length. n is not accessible in this context.

Turning n into a bound implicit name behaves as described in the book.

Should this change go in the CHANGELOG?

No