Disallow virtual and override for constructors.

This commit is contained in:
Daniel Kirchner
2020-04-15 13:58:37 +02:00
parent 95349b3634
commit b86c927505
4 changed files with 15 additions and 0 deletions
@@ -0,0 +1,5 @@
contract C {
constructor() virtual public {}
}
// ----
// TypeError: (17-48): Constructors cannot be virtual.