solidity/test/libsolidity/syntaxTests/immutable/selector_function_name.sol

14 lines
306 B
Solidity
Raw Normal View History

2020-03-10 17:15:50 +00:00
contract C {
uint immutable x;
2020-06-23 12:14:24 +00:00
constructor() {
2020-03-10 17:15:50 +00:00
x = 3;
C.selector.selector;
C.selector;
}
function selector() external view returns(uint) { return x; }
}
// ----
2020-06-23 12:14:24 +00:00
// Warning 6133: (78-97): Statement has no effect.
// Warning 6133: (107-117): Statement has no effect.