solidity/test/libsolidity/syntaxTests/returnExpressions/single_return_mismatching_type.sol
2019-02-06 20:45:30 +01:00

10 lines
260 B
Solidity

contract C
{
function g() public pure returns (uint)
{
return "string";
}
}
// ----
// TypeError: (78-86): Return argument type literal_string "string" is not implicitly convertible to expected type (type of first return variable) uint256.