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

10 lines
249 B
Solidity
Raw Normal View History

contract C {
2020-06-23 12:14:24 +00:00
constructor() {
this.f();
}
function f() pure public {
}
}
// ----
2020-06-23 12:14:24 +00:00
// Warning 5805: (41-45): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.