Disallow call of same-class-ctor as modifier

This commit is contained in:
Mathias Baumann
2019-10-23 10:29:41 +02:00
parent d5b2f347bf
commit 6ac12afd06
3 changed files with 11 additions and 3 deletions
@@ -0,0 +1,5 @@
contract C {
constructor() C() public {}
}
// ----
// TypeError: (31-34): Referenced declaration is neither modifier nor base class.