From 9e2324ad1e3f2abf528fbbbdafe2cb8a18c3151d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 25 Jan 2011 17:54:38 -0500 Subject: Small first step in expr_path. Call find_final_def just to detect unresolved names. find_final_def is going to be extended to return the final expr. --- src/test/compile-fail/bad-expr-path.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/test/compile-fail/bad-expr-path.rs (limited to 'src/test') diff --git a/src/test/compile-fail/bad-expr-path.rs b/src/test/compile-fail/bad-expr-path.rs new file mode 100644 index 00000000..97c95c01 --- /dev/null +++ b/src/test/compile-fail/bad-expr-path.rs @@ -0,0 +1,8 @@ +// error-pattern: unresolved name: a + +mod m1 { +} + +fn main(vec[str] args) { + log m1.a; +} -- cgit v1.2.3