solidity/test/libsolidity/syntaxTests/constructor/constructor_virtual.sol

6 lines
112 B
Solidity
Raw Normal View History

contract C {
2020-06-23 12:14:24 +00:00
constructor() virtual {}
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 7001: (17-41): Constructors cannot be virtual.