fix(init/core): typed_expr should accept Props

Fixes #1954
This commit is contained in:
Sebastian Ullrich 2018-04-10 14:18:31 +02:00
parent 2b1e207e02
commit 726a5547de
2 changed files with 3 additions and 1 deletions

View file

@ -105,7 +105,7 @@ a
@[reducible] def out_param (α : Sort u) : Sort u := α
/-- Auxiliary declaration used to implement the notation (a : α) -/
@[reducible] def typed_expr (α : Type u) (a : α) : α := a
@[reducible] def typed_expr (α : Sort u) (a : α) : α := a
/-
id_rhs is an auxiliary declaration used in the equation compiler to address performance

2
tests/lean/run/1954.lean Normal file
View file

@ -0,0 +1,2 @@
def all (p : → Prop) : Prop := ∀x, p x
example {p : → Prop} (h : all p) : p 0 := all p 0