aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/491_using_this_in_constructor.sol
blob: 7921a1fac20ff336d4e17764b8d0561769fc1855 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    constructor() public {
        this.f();
    }
    function f() pure public {
    }
}
// ----
// Warning: (48-52): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.