aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-07-05 21:48:57 +0800
committerLeonardo Alt <leo@ethereum.org>2018-07-09 23:19:41 +0800
commitc1b67a845b7327e58ecf8fd8502750fbdb378e6e (patch)
tree0eec11152525d8817cc079044549a58f177c2ab7 /test/libsolidity/syntaxTests
parent694754b4fe410abfa0661e29dd3e6d4d1ea1283e (diff)
downloaddexon-solidity-c1b67a845b7327e58ecf8fd8502750fbdb378e6e.tar.gz
dexon-solidity-c1b67a845b7327e58ecf8fd8502750fbdb378e6e.tar.zst
dexon-solidity-c1b67a845b7327e58ecf8fd8502750fbdb378e6e.zip
Enforce error on hex number combined with unit denomination
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r--test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol2
-rw-r--r--test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination_050.sol6
2 files changed, 1 insertions, 7 deletions
diff --git a/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol b/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol
index 3571e8a9..f115ac60 100644
--- a/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol
+++ b/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination.sol
@@ -2,4 +2,4 @@ contract C {
uint constant x = 0x01 wei;
}
// ----
-// Warning: (32-40): Hexadecimal numbers with unit denominations are deprecated. You can use an expression of the form "0x1234 * 1 day" instead.
+// TypeError: (32-40): Hexadecimal numbers cannot be used with unit denominations. You can use an expression of the form "0x1234 * 1 day" instead.
diff --git a/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination_050.sol b/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination_050.sol
deleted file mode 100644
index 98865999..00000000
--- a/test/libsolidity/syntaxTests/denominations/combining_hex_and_denomination_050.sol
+++ /dev/null
@@ -1,6 +0,0 @@
-pragma experimental "v0.5.0";
-contract C {
- uint constant x = 0x01 wei;
-}
-// ----
-// TypeError: (62-70): Hexadecimal numbers cannot be used with unit denominations. You can use an expression of the form "0x1234 * 1 day" instead.