diff options
author | Jason Cobb <jason.e.cobb@gmail.com> | 2018-04-11 05:35:15 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-04-11 18:03:08 +0800 |
commit | 3b7b962b663b493ad876a084fea72a3b747ce9e8 (patch) | |
tree | eb387d20447d93f20831bef6458540d1e2f3aa47 /test/libsolidity | |
parent | 41d81a7432caac39fa420ab6b761a35221710171 (diff) | |
download | dexon-solidity-3b7b962b663b493ad876a084fea72a3b747ce9e8.tar.gz dexon-solidity-3b7b962b663b493ad876a084fea72a3b747ce9e8.tar.zst dexon-solidity-3b7b962b663b493ad876a084fea72a3b747ce9e8.zip |
Fix bug in typechecking when comparing rational literals
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/syntaxTests/literal_comparisons.sol | 7 |
1 files changed, 7 insertions, 0 deletions
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) {} + } +} +// ---- |