From 815424c2ec96f461ea10a91d9955071271c5c64f Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 4 Aug 2010 13:44:09 -0700 Subject: Fix pexp parser to do left-associativity, not right. Closes #130. --- src/test/run-pass/operator-associativity.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/test/run-pass/operator-associativity.rs (limited to 'src/test') diff --git a/src/test/run-pass/operator-associativity.rs b/src/test/run-pass/operator-associativity.rs new file mode 100644 index 00000000..2c028eba --- /dev/null +++ b/src/test/run-pass/operator-associativity.rs @@ -0,0 +1,4 @@ +// Testcase for issue #130, operator associativity. +fn main() -> () { + check ((3 * 5 / 2) == 7); +} -- cgit v1.2.3