solidity/test/libsolidity/syntaxTests/constructor/interface_constructor.sol
2022-04-01 23:41:18 -05:00

7 lines
220 B
Solidity

interface I {
constructor();
}
// ----
// TypeError 6482: (15-29='constructor();'): Constructor cannot be defined in interfaces.
// TypeError 5700: (15-29='constructor();'): Constructor must be implemented if declared.