diff options
author | chriseth <chris@ethereum.org> | 2018-11-23 00:28:02 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-26 23:51:45 +0800 |
commit | 1e7a23a2051c07adbafc60e3c82b34ee307e9647 (patch) | |
tree | 5ac7ad307cfa48455b7cfe3ee20b827e9ededd99 /test/libsolidity/syntaxTests/inheritance | |
parent | 4d7799eed467009323e43d36134eba64bfafad34 (diff) | |
download | dexon-solidity-1e7a23a2051c07adbafc60e3c82b34ee307e9647.tar.gz dexon-solidity-1e7a23a2051c07adbafc60e3c82b34ee307e9647.tar.zst dexon-solidity-1e7a23a2051c07adbafc60e3c82b34ee307e9647.zip |
Changelog entry and tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/inheritance')
-rw-r--r-- | test/libsolidity/syntaxTests/inheritance/override/change_return_types_in_interface.sol | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/inheritance/override/change_return_types_in_interface.sol b/test/libsolidity/syntaxTests/inheritance/override/change_return_types_in_interface.sol new file mode 100644 index 00000000..804a1810 --- /dev/null +++ b/test/libsolidity/syntaxTests/inheritance/override/change_return_types_in_interface.sol @@ -0,0 +1,10 @@ +interface I { + function f() external pure returns (uint); +} +contract B is I { + // The compiler used to have a bug where changing + // the return type was fine in this situation. + function f() public pure returns (uint, uint) {} +} +// ---- +// TypeError: (182-230): Overriding function return types differ. |