diff options
author | chriseth <chris@ethereum.org> | 2018-07-16 22:25:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 22:25:22 +0800 |
commit | 29dae15c50277d52087f2eddea7d2033754e2c1f (patch) | |
tree | 321fa187d152510403c005b0c44738453f6c8539 /test/libsolidity/syntaxTests | |
parent | b38c26bb0cbbb7fe80c99fc757cb6150c61a56b4 (diff) | |
parent | bdac82ecdbb6a4d27e9c5b11ce48d2d653a652e6 (diff) | |
download | dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar.gz dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar.bz2 dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar.lz dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar.xz dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.tar.zst dexon-solidity-29dae15c50277d52087f2eddea7d2033754e2c1f.zip |
Merge pull request #4481 from ethereum/disallow-throw
[BREAKING] Deprecate the throw statement
Diffstat (limited to 'test/libsolidity/syntaxTests')
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()". |