solidity/test/libsolidity/syntaxTests/immutable/selector_function_name.sol
2020-07-07 12:16:18 +02:00

14 lines
306 B
Solidity

contract C {
uint immutable x;
constructor() {
x = 3;
C.selector.selector;
C.selector;
}
function selector() external view returns(uint) { return x; }
}
// ----
// Warning 6133: (78-97): Statement has no effect.
// Warning 6133: (107-117): Statement has no effect.