solidity/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationInvalidType.sol

10 lines
342 B
Solidity
Raw Normal View History

contract C {
function f() internal returns (string memory, uint, uint, uint) {
(uint a, string memory b,,) = f();
a; b;
}
}
// ----
// TypeError: (85-118): Type string memory is not implicitly convertible to expected type uint256.
// TypeError: (85-118): Type uint256 is not implicitly convertible to expected type string memory.