solidity/test/libsolidity/syntaxTests/returnExpressions/single_return_mismatching_type.sol

10 lines
265 B
Solidity
Raw Normal View History

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