mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
33 lines
662 B
Solidity
33 lines
662 B
Solidity
contract test {
|
|
/// @notice this is a really nice constructor
|
|
constructor(uint a, uint second) { }
|
|
/// another multiplier
|
|
function mul(uint a, uint second) public returns(uint d) { return a * 7 + second; }
|
|
}
|
|
|
|
// ----
|
|
// ----
|
|
// :test devdoc
|
|
// {
|
|
// "kind": "dev",
|
|
// "methods": {},
|
|
// "version": 1
|
|
// }
|
|
//
|
|
// :test userdoc
|
|
// {
|
|
// "kind": "user",
|
|
// "methods":
|
|
// {
|
|
// "constructor":
|
|
// {
|
|
// "notice": "this is a really nice constructor"
|
|
// },
|
|
// "mul(uint256,uint256)":
|
|
// {
|
|
// "notice": "another multiplier"
|
|
// }
|
|
// },
|
|
// "version": 1
|
|
// }
|