mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ba019e5a01
- dev_multiple_params_mixed_whitespace has whitespace that is not completely preserved - dev_explicit_inherit_complex is a multi-file test
46 lines
1.2 KiB
Solidity
46 lines
1.2 KiB
Solidity
==== Source: Interfaces.sol ====
|
|
interface ERC20 {
|
|
/// Transfer ``amount`` from ``msg.sender`` to ``to``.
|
|
/// @dev test
|
|
/// @param to address to transfer to
|
|
/// @param amount amount to transfer
|
|
function transfer(address to, uint amount) external returns (bool);
|
|
}
|
|
|
|
interface ERC21 {
|
|
/// Transfer ``amount`` from ``msg.sender`` to ``to``.
|
|
/// @dev test2
|
|
/// @param to address to transfer to
|
|
/// @param amount amount to transfer
|
|
function transfer(address to, uint amount) external returns (bool);
|
|
}
|
|
|
|
==== Source: Testfile.sol ====
|
|
import "Interfaces.sol" as myInterfaces;
|
|
|
|
contract Token is myInterfaces.ERC20, myInterfaces.ERC21 {
|
|
/// @inheritdoc myInterfaces.ERC20
|
|
function transfer(address too, uint amount)
|
|
override(myInterfaces.ERC20, myInterfaces.ERC21) external returns (bool) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// ----
|
|
// Testfile.sol:Token devdoc
|
|
// {
|
|
// "methods":
|
|
// {
|
|
// "transfer(address,uint256)":
|
|
// {
|
|
// "details": "test",
|
|
// "params":
|
|
// {
|
|
// "amount": "amount to transfer",
|
|
// "to": "address to transfer to"
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|