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

10 lines
216 B
Solidity
Raw Normal View History

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