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

7 lines
141 B
Solidity

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