diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 03:39:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 03:39:25 +0800 |
commit | d84976dc871a1fdfab233650b989af69e325bf2b (patch) | |
tree | 146c0efc9c43d26617993cf5e8fc1e5cc592def6 /test/libsolidity/syntaxTests/inlineAssembly | |
parent | 49cc1b855464d428f022267b5997dfc093ea1b44 (diff) | |
parent | bc6b42a9f6056f9e6e3bf9467562fd61c044e95b (diff) | |
download | dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar.gz dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar.bz2 dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar.lz dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar.xz dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.tar.zst dexon-solidity-d84976dc871a1fdfab233650b989af69e325bf2b.zip |
Merge pull request #4376 from ethereum/fallbackExternal
Fallback functions have to be external
Diffstat (limited to 'test/libsolidity/syntaxTests/inlineAssembly')
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol | 4 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol index 55c83674..b6dd12b8 100644 --- a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference.sol @@ -1,6 +1,6 @@ contract C { uint[] x; - function() public { + function() external { uint[] storage y = x; assembly { pop(y) @@ -8,4 +8,4 @@ contract C { } } // ---- -// TypeError: (117-118): You have to use the _slot or _offset suffix to access storage reference variables. +// TypeError: (119-120): You have to use the _slot or _offset suffix to access storage reference variables. diff --git a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol index 3ae24b34..84f98ed9 100644 --- a/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol +++ b/test/libsolidity/syntaxTests/inlineAssembly/storage_reference_fine.sol @@ -1,6 +1,6 @@ contract C { uint[] x; - function() public { + function() external { uint[] storage y = x; assembly { pop(y_slot) |