aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-31 00:41:34 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-31 02:50:06 +0800
commit6e23006937f583dcfe0ce1a356ea57f88865974f (patch)
tree7ebf5d8543845de1500264d43542397f2123eb4b /test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol
parentdeeca7bc5d968e90d65c3ce094ae1e93c3844637 (diff)
downloaddexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.gz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.bz2
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.lz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.xz
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.tar.zst
dexon-solidity-6e23006937f583dcfe0ce1a356ea57f88865974f.zip
Split out SolidityNameAndTypeResolution tests into SyntaxTests
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol')
-rw-r--r--test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol
new file mode 100644
index 00000000..37c6aa05
--- /dev/null
+++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/409_invalid_address_length_long.sol
@@ -0,0 +1,9 @@
+contract C {
+ function f() pure public {
+ address x = 0xFA0bFc97E48458494Ccd857e1A85DC91F7F0046E0;
+ x;
+ }
+}
+// ----
+// Warning: (64-107): This looks like an address but has an invalid checksum. If this is not used as an address, please prepend '00'. For more information please see https://solidity.readthedocs.io/en/develop/types.html#address-literals
+// TypeError: (52-107): Type int_const 2284...(42 digits omitted)...9360 is not implicitly convertible to expected type address.