solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/491_using_this_in_constructor.sol

10 lines
256 B
Solidity

contract C {
constructor() public {
this.f();
}
function f() pure public {
}
}
// ----
// Warning 5805: (48-52): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.