diff options
author | chriseth <chris@ethereum.org> | 2018-11-26 23:50:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-26 23:50:40 +0800 |
commit | f937896727d85dcdbb60783d10f9cea1eaf9f925 (patch) | |
tree | 9d202b2e05908be6d6b01d4813757ac2a5b2751e /test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol | |
parent | f6d8810103c762d1f5a41bf1c29d33b771cfed50 (diff) | |
parent | 597174119a5f8ab03286c58581e7bf5ec52c14dc (diff) | |
download | dexon-solidity-f937896727d85dcdbb60783d10f9cea1eaf9f925.tar.gz dexon-solidity-f937896727d85dcdbb60783d10f9cea1eaf9f925.tar.zst dexon-solidity-f937896727d85dcdbb60783d10f9cea1eaf9f925.zip |
Merge pull request #5445 from ethereum/publicExternalOverwrite
Allow overwriting external functions (with ``calldata`` arguments) with public functions (with ``memory`` arguments)
Diffstat (limited to 'test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol b/test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol new file mode 100644 index 00000000..c09a8000 --- /dev/null +++ b/test/libsolidity/syntaxTests/inheritance/override/internal_external_inheritance.sol @@ -0,0 +1,9 @@ +contract A { + function f(uint[] calldata) external pure {} +} +contract B { + function f(uint[] memory) internal pure {} +} +contract C is A, B {} +// ---- +// TypeError: (81-123): Overriding function visibility differs. |