diff options
author | chriseth <chris@ethereum.org> | 2018-04-11 20:39:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 20:39:13 +0800 |
commit | b7b6d0ce7c0c01a3600421ee3a402b1c913d8892 (patch) | |
tree | eb387d20447d93f20831bef6458540d1e2f3aa47 /test/libsolidity | |
parent | 41d81a7432caac39fa420ab6b761a35221710171 (diff) | |
parent | 3b7b962b663b493ad876a084fea72a3b747ce9e8 (diff) | |
download | dexon-solidity-b7b6d0ce7c0c01a3600421ee3a402b1c913d8892.tar.gz dexon-solidity-b7b6d0ce7c0c01a3600421ee3a402b1c913d8892.tar.zst dexon-solidity-b7b6d0ce7c0c01a3600421ee3a402b1c913d8892.zip |
Merge pull request #3799 from meowingtwurtle/fixLiteralComparisons
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) {} + } +} +// ---- |