2014-12-01 05:16:01 +00:00
|
|
|
prelude
|
2014-10-02 23:20:52 +00:00
|
|
|
constant nat : Type.{1}
|
|
|
|
constant f : nat → nat
|
2014-08-19 01:46:37 +00:00
|
|
|
|
|
|
|
namespace foo
|
2014-10-02 23:20:52 +00:00
|
|
|
constant int : Type.{1}
|
|
|
|
constant f : int → int
|
|
|
|
constant a : nat
|
|
|
|
constant i : int
|
2014-08-19 01:46:37 +00:00
|
|
|
check _root_.f a
|
|
|
|
check f i
|
|
|
|
end foo
|
|
|
|
|
2014-09-03 23:00:38 +00:00
|
|
|
open foo
|
2014-10-02 23:20:52 +00:00
|
|
|
constants a : nat
|
|
|
|
constants i : int
|
2014-08-19 01:46:37 +00:00
|
|
|
check f a
|
|
|
|
check f i
|