lean2/tests/lean/error_pos_bug2.lean
Leonardo de Moura 3454e70017 fix(frontends/lean/inductive_cmd): bug in expression position propagation, fixes #289
Fix incorrect line/column number information in error messages produced
during inductive datatype elaboration.
2014-11-04 07:44:47 -08:00

18 lines
396 B
Text

inductive fibrant [class] (T : Type) : Type :=
mk : fibrant T
inductive Fib : Type :=
mk : ΠA : Type, fibrant A → Fib
namespace Fib
definition type [coercion] (F : Fib) : Type := Fib.rec_on F (λA f, A)
definition is_fibrant [instance] (F : Fib) : fibrant (type F) := Fib.rec_on F (λA f, f)
end Fib
-- open Fib
-- Path
inductive path {A : Fib} (a : A) : A → Type :=
idpath : path a a