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

12 lines
424 B
Solidity

contract C {
function f() internal {
{
(uint a, uint b, uint c) = (a, b, c);
}
}
}
// ----
// DeclarationError 7576: (79-80): Undeclared identifier. "a" is not (or not yet) visible at this point.
// DeclarationError 7576: (82-83): Undeclared identifier. "b" is not (or not yet) visible at this point.
// DeclarationError 7576: (85-86): Undeclared identifier. "c" is not (or not yet) visible at this point.