solidity/test/libsolidity/syntaxTests/inlineAssembly/shadowing/local_variable.sol

11 lines
232 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
uint a;
assembly {
let a := 1
}
}
}
// ----
// DeclarationError: (95-96): This declaration shadows a declaration outside the inline assembly block.