lean2/tests/lean/interactive/mod.input
Leonardo de Moura 0d6d746d98 feat(frontends/lean): check modification time of imported files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-29 15:17:27 -07:00

26 lines
No EOL
383 B
Text

VISIT A.lean
REPLACE 1
definition id {A : Type} (a : A) := a
SAVE A.olean
VISIT B.lean
REPLACE 1
import A
REPLACE 2
definition my_id {A : Type} (a : A) := id a
REPLACE 3
definition my_id2 {A : Type} (a : A) := a
WAIT
EVAL
check @my_id
EVAL
check @my_id2
VISIT A.lean
REPLACE 1
definition id2 {A : Type} (a : A) := a
SAVE A.olean
VISIT B.lean
WAIT
EVAL
check @my_id
EVAL
check @my_id2