blob: 860497195fbb6f598eb4729399a8561ef6547073 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
contract C
{
function f() public pure returns (uint a, uint b)
{
return 1;
}
function g() public pure returns (uint a, uint b)
{
return (1, 2, 3);
}
function h() public pure returns (uint a, uint b)
{
return;
}
}
// ----
// TypeError: (81-89): Different number of arguments in return statement than in returns declaration.
// TypeError: (165-181): Different number of arguments in return statement than in returns declaration.
// TypeError: (257-264): Return arguments required.
|