diff options
author | Christian Parpart <christian@ethereum.org> | 2018-07-03 17:51:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-02 20:36:05 +0800 |
commit | 5d9320c70b11b5ae1a44376451599732aa49dcde (patch) | |
tree | 6d41279efe62a7f9e62afcb119bdcfb045a3e5ea /test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol | |
parent | 6003ed2abdea76e809b1e6501b9e5a85b38e5859 (diff) | |
download | dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.gz dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.tar.zst dexon-solidity-5d9320c70b11b5ae1a44376451599732aa49dcde.zip |
Disallow loos assembly in Solidity by permanently setting it to SyntaxError (from Warning)
Diffstat (limited to 'test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol index c1729db7..933bb4a3 100644 --- a/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol +++ b/test/libsolidity/syntaxTests/viewPureChecker/assembly_jump_view_fail.sol @@ -4,5 +4,4 @@ contract C { } } // ---- -// Warning: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead. -// TypeError: (63-70): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. +// SyntaxError: (63-70): Jump instructions and labels are low-level EVM features that can lead to incorrect stack access. Because of that they are discouraged. Please consider using "switch", "if" or "for" statements instead. |