solidity/test/libsolidity/syntaxTests/scoping/function_state_variable_conflict.sol

7 lines
146 B
Solidity

contract C {
function f(uint) public pure {}
uint public f = 0;
}
// ----
// DeclarationError 2333: (53-70): Identifier already declared.