From 3b7b962b663b493ad876a084fea72a3b747ce9e8 Mon Sep 17 00:00:00 2001 From: Jason Cobb Date: Tue, 10 Apr 2018 17:35:15 -0400 Subject: Fix bug in typechecking when comparing rational literals --- test/libsolidity/syntaxTests/literal_comparisons.sol | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/libsolidity/syntaxTests/literal_comparisons.sol (limited to 'test/libsolidity/syntaxTests') diff --git a/test/libsolidity/syntaxTests/literal_comparisons.sol b/test/libsolidity/syntaxTests/literal_comparisons.sol new file mode 100644 index 00000000..dd2afcaa --- /dev/null +++ b/test/libsolidity/syntaxTests/literal_comparisons.sol @@ -0,0 +1,7 @@ +contract test { + function f(int8 x) public pure { + if (x == 1) {} + if (1 == x) {} + } +} +// ---- -- cgit