lean4-htt/tests/pkg/user_attr/UserAttr/MetaMid.lean
Sebastian Ullrich e6dfdfdcee
fix: reject attribute uses whose module is reachable only via IR (#13613)
This PR makes the elaborator reject `@[foo]` when the module that
registers `foo` is not visibly imported into the current file but merely
loaded as IR. Previously such uses silently elaborated but led to
divergence of cmdline and server behavior and caused `lake shake --fix`
to flip-flop on successive runs (#13599).
2026-05-06 11:55:43 +00:00

13 lines
292 B
Text

module
import UserAttr.BlaAttr
/-! Middle module that plain-imports `UserAttr.BlaAttr`, used by `UserAttr.MetaUser` to set up the
`meta import` chain that triggers the regression in
https://github.com/leanprover/lean4/issues/13599. -/
@[expose] public section
def midVal : Nat := 17
end