mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixes wrong visibility specifier in interface constructor test.
This commit is contained in:
parent
0dd3e6052c
commit
3f53db402f
@ -1,7 +1,7 @@
|
||||
interface I {
|
||||
constructor() public;
|
||||
constructor() external;
|
||||
}
|
||||
// ----
|
||||
// Warning: (15-36): Functions in interfaces should be declared external.
|
||||
// TypeError: (15-36): Constructor cannot be defined in interfaces.
|
||||
// TypeError: (15-36): Constructor must be implemented if declared.
|
||||
// TypeError: (15-38): Constructor must be public or internal.
|
||||
// TypeError: (15-38): Constructor cannot be defined in interfaces.
|
||||
// TypeError: (15-38): Constructor must be implemented if declared.
|
||||
|
@ -1,8 +1,8 @@
|
||||
interface I {
|
||||
function I() public;
|
||||
function I() external;
|
||||
}
|
||||
// ----
|
||||
// Warning: (15-35): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
|
||||
// Warning: (15-35): Functions in interfaces should be declared external.
|
||||
// TypeError: (15-35): Constructor cannot be defined in interfaces.
|
||||
// TypeError: (15-35): Constructor must be implemented if declared.
|
||||
// Warning: (15-37): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
|
||||
// TypeError: (15-37): Constructor must be public or internal.
|
||||
// TypeError: (15-37): Constructor cannot be defined in interfaces.
|
||||
// TypeError: (15-37): Constructor must be implemented if declared.
|
||||
|
Loading…
Reference in New Issue
Block a user