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

12 lines
409 B
Solidity
Raw Normal View History

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