solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/491_using_this_in_constructor.sol
2020-07-07 12:16:18 +02:00

10 lines
249 B
Solidity

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