lean4-htt/tests/lean/openExport.lean
2020-09-15 10:46:40 -07:00

35 lines
464 B
Text

new_frontend
def A.x := 10
namespace B
export A (x)
def y := 20
#check x -- works
#check y -- works
end B
#check A.x -- works
#check B.x -- works, but fails in old frontend and Lean3 :)
#check B.y -- works
#check x -- fails as expected
#check y -- fails as expected
open B
#check x -- works
#check y -- works
namespace B
#check x -- works
#check y -- works
def z := 30
#check z -- works
end B
#check z -- works, but fails in old frontend and Lean3 :)