test(tests/lean): add missing test for issue #634

This commit is contained in:
Leonardo de Moura 2015-05-29 15:09:31 -07:00
parent f48cdccd20
commit 60ff057159
2 changed files with 34 additions and 0 deletions

24
tests/lean/634d.lean Normal file
View file

@ -0,0 +1,24 @@
open nat
section
universe l
definition A {n : } (t : Type.{l}) := t
check A
check _root_.A.{1}
set_option pp.universes true
check A
check _root_.A.{1}
end
section
universe l
parameters {B : Type.{l}}
definition P {n : } (b : B) := b
check P
check @_root_.P.{1} nat
set_option pp.universes true
check P
check _root_.P.{1}
set_option pp.implicit true
check @P 2
check @_root_.P.{1} nat
end

View file

@ -0,0 +1,10 @@
A : Type → Type
_root_.A : Type₁ → Type₁
A : Type.{l} → Type.{l}
_root_.A.{1} : Type₁ → Type₁
P : B → B
_root_.P.{1} : Π {n : },
P : B → B
_root_.P.{1} : ?B → ?B
@P 2 : B → B
@_root_.P.{1} : Π {n : },