2018-04-17 09:39:40 +00:00
|
|
|
interface I {
|
2018-07-06 17:42:44 +00:00
|
|
|
function I() public;
|
2018-04-17 09:39:40 +00:00
|
|
|
}
|
|
|
|
// ----
|
2018-07-06 17:42:44 +00:00
|
|
|
// Warning: (15-35): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
|
2018-07-12 12:57:42 +00:00
|
|
|
// TypeError: (15-35): Functions in interfaces must be declared external.
|
2018-07-06 17:42:44 +00:00
|
|
|
// TypeError: (15-35): Constructor cannot be defined in interfaces.
|
|
|
|
// TypeError: (15-35): Constructor must be implemented if declared.
|