lean2/tests/lean/elab8.lean
Leonardo de Moura 8c1f6b9055 fix(kernel/typechecker): allow elaborator to infer (Type U+1)
In the new test elab8.lean, the parameter B is in (Type U+1).
Before, this commit, the type checker was forcing all metavariables that must be types to be <= (Type U). This restriction was preventing the elaborator from succeeding in reasonable cases.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-30 14:00:01 -08:00

3 lines
No EOL
176 B
Text

definition D1 (A : (Type U)) (B : Nat → (Type U)) := true
definition D2 (A : (Type U)) (B : A → (Type U)) := true
definition D3 (A : (Type U)) (B : A → (Type U)) := false