diff options
author | chriseth <chris@ethereum.org> | 2018-02-21 18:07:30 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-03-21 22:53:29 +0800 |
commit | c2709a2d8e53155513fa8002a564e434fce68c68 (patch) | |
tree | 39588b44be72002e805c517ff13fa4cde2a77fc4 /test/libsolidity | |
parent | cc2f71e4acede70f6c220d3d0ba407ab73c2024c (diff) | |
download | dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.gz dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.bz2 dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.lz dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.xz dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.zst dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.zip |
Decode dynamic data.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index c757037c..8a020ca6 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -3372,6 +3372,11 @@ BOOST_AUTO_TEST_CASE(dynamic_return_types_not_possible) } } )"; + m_compiler.setEVMVersion(EVMVersion{}); + CHECK_WARNING(sourceCode, "Use of the \"var\" keyword is deprecated"); + m_compiler.setEVMVersion(*EVMVersion::fromString("byzantium")); + CHECK_WARNING(sourceCode, "Use of the \"var\" keyword is deprecated"); + m_compiler.setEVMVersion(*EVMVersion::fromString("homestead")); CHECK_ERROR(sourceCode, TypeError, "Explicit type conversion not allowed from \"inaccessible dynamic type\" to \"bytes storage pointer\"."); } |