diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-07-11 22:06:31 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-16 21:33:20 +0800 |
commit | 21e97da2949a421987b0c6ad75bd401ce1dad0ab (patch) | |
tree | 71647ef2a4fe439e759aa452bad25b0e2c678a7a /test/libsolidity | |
parent | 931794001e92cbfe99c91da037cf36a1808d9df1 (diff) | |
download | dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar.gz dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar.bz2 dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar.lz dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar.xz dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.tar.zst dexon-solidity-21e97da2949a421987b0c6ad75bd401ce1dad0ab.zip |
Deprecate the throw statement
Diffstat (limited to 'test/libsolidity')
3 files changed, 1 insertions, 18 deletions
diff --git a/test/libsolidity/syntaxTests/controlFlow/storageReturn/throw_fine.sol b/test/libsolidity/syntaxTests/controlFlow/storageReturn/throw_fine.sol deleted file mode 100644 index 4cecc27c..00000000 --- a/test/libsolidity/syntaxTests/controlFlow/storageReturn/throw_fine.sol +++ /dev/null @@ -1,9 +0,0 @@ -contract C { - struct S { bool f; } - S s; - function f() internal pure returns (S storage) { - throw; - } -} -// ---- -// Warning: (108-113): "throw" is deprecated in favour of "revert()", "require()" and "assert()". diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/426_throw_is_deprecated.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/426_throw_is_deprecated.sol index 510c0d01..24f36c5b 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/426_throw_is_deprecated.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/426_throw_is_deprecated.sol @@ -4,4 +4,4 @@ contract C { } } // ---- -// Warning: (52-57): "throw" is deprecated in favour of "revert()", "require()" and "assert()". +// SyntaxError: (52-57): "throw" is deprecated in favour of "revert()", "require()" and "assert()". diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/427_throw_is_deprecated_v050.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/427_throw_is_deprecated_v050.sol deleted file mode 100644 index 170d47d9..00000000 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/427_throw_is_deprecated_v050.sol +++ /dev/null @@ -1,8 +0,0 @@ -pragma experimental "v0.5.0"; -contract C { - function f() pure public { - throw; - } -} -// ---- -// SyntaxError: (82-87): "throw" is deprecated in favour of "revert()", "require()" and "assert()". |