From 3436979b175496a3936f00e90748e2fad0343ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Mon, 14 Mar 2011 16:56:03 -0400 Subject: Split trans' collection in two passes. This allows us to handle tags that are defined after use in a block. This is really inefficient, but for now it lets us compile the included test. --- src/test/run-pass/tag-in-block.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/run-pass/tag-in-block.rs (limited to 'src/test') diff --git a/src/test/run-pass/tag-in-block.rs b/src/test/run-pass/tag-in-block.rs new file mode 100644 index 00000000..3ee7b740 --- /dev/null +++ b/src/test/run-pass/tag-in-block.rs @@ -0,0 +1,13 @@ +fn foo() { + fn zed(bar z) { + } + tag bar { + nil; + } + fn baz() { + zed(nil); + } +} + +fn main(vec[str] args) { +} -- cgit v1.2.3