aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-21 18:07:30 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-03-21 22:53:29 +0800
commitc2709a2d8e53155513fa8002a564e434fce68c68 (patch)
tree39588b44be72002e805c517ff13fa4cde2a77fc4 /test
parentcc2f71e4acede70f6c220d3d0ba407ab73c2024c (diff)
downloaddexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.gz
dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.tar.zst
dexon-solidity-c2709a2d8e53155513fa8002a564e434fce68c68.zip
Decode dynamic data.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp5
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\".");
}