Expose a bug when shadowing a macro
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
This commit is contained in:
parent
1ac0da6347
commit
a738e1bc38
|
@ -3,3 +3,13 @@
|
||||||
(name runtest)
|
(name runtest)
|
||||||
(deps (:root foo))
|
(deps (:root foo))
|
||||||
(action (echo %{root})))
|
(action (echo %{root})))
|
||||||
|
|
||||||
|
(alias
|
||||||
|
(name runtest)
|
||||||
|
(deps (:read x))
|
||||||
|
(action (progn
|
||||||
|
(echo %{read})
|
||||||
|
(echo %{read:y}))))
|
||||||
|
|
||||||
|
(rule (with-stdout-to x (echo "a\n")))
|
||||||
|
(rule (with-stdout-to y (echo "b\n")))
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
Bindings introduced by user dependencies should shadow existing bindings
|
Bindings introduced by user dependencies should shadow existing bindings
|
||||||
|
|
||||||
$ dune runtest
|
$ dune runtest
|
||||||
|
Internal error, please report upstream including the contents of _build/log.
|
||||||
|
Description:
|
||||||
|
("Local named variable not present in named deps"
|
||||||
|
(pform "\%{read:y}")
|
||||||
|
(deps_written_by_user ((:read (In_build_dir default/x)))))
|
||||||
|
Backtrace:
|
||||||
|
Raised at file "src/dep_path.ml" (inlined), line 45, characters 24-55
|
||||||
|
Called from file "src/build_system.ml", line 89, characters 6-48
|
||||||
|
Called from file "src/fiber/fiber.ml", line 243, characters 6-18
|
||||||
foo
|
foo
|
||||||
|
[1]
|
||||||
|
|
Loading…
Reference in New Issue