2019-11-29 15:59:15 +00:00
|
|
|
contract C {
|
|
|
|
function f() public pure {}
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() {
|
2019-11-29 15:59:15 +00:00
|
|
|
C c = this;
|
|
|
|
c.f(); // this does not warn now, but should warn in the future
|
|
|
|
this.f();
|
|
|
|
(this).f();
|
|
|
|
}
|
|
|
|
}
|
2021-03-31 15:11:54 +00:00
|
|
|
// ====
|
|
|
|
// SMTEngine: all
|
2019-11-29 15:59:15 +00:00
|
|
|
// ----
|
2021-03-31 15:11:54 +00:00
|
|
|
// Warning 5805: (165-169): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.
|
|
|
|
// Warning 5805: (184-188): "this" used in constructor. Note that external functions of a contract cannot be called while it is being constructed.
|