solidity/test/libsolidity/syntaxTests/inlineAssembly/shadowing/constant.sol
2022-04-01 23:41:18 -05:00

11 lines
248 B
Solidity

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