aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-04 21:15:30 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-04 21:15:30 +0800
commit3f53db402f39516f4d89ed39f54a49dc11d89c65 (patch)
tree137337ed85661c982b367b8671dcf0f1053fde1c /test
parent0dd3e6052cfe3ab76376758eeeebcd379ff8b538 (diff)
downloaddexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar.gz
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar.bz2
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar.lz
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar.xz
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.tar.zst
dexon-solidity-3f53db402f39516f4d89ed39f54a49dc11d89c65.zip
Fixes wrong visibility specifier in interface constructor test.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/syntaxTests/constructor/interface_constructor_new.sol8
-rw-r--r--test/libsolidity/syntaxTests/constructor/interface_constructor_old.sol10
2 files changed, 9 insertions, 9 deletions
diff --git a/test/libsolidity/syntaxTests/constructor/interface_constructor_new.sol b/test/libsolidity/syntaxTests/constructor/interface_constructor_new.sol
index 2cab1851..6efdea46 100644
--- a/test/libsolidity/syntaxTests/constructor/interface_constructor_new.sol
+++ b/test/libsolidity/syntaxTests/constructor/interface_constructor_new.sol
@@ -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.
diff --git a/test/libsolidity/syntaxTests/constructor/interface_constructor_old.sol b/test/libsolidity/syntaxTests/constructor/interface_constructor_old.sol
index 313d4345..449d3f1b 100644
--- a/test/libsolidity/syntaxTests/constructor/interface_constructor_old.sol
+++ b/test/libsolidity/syntaxTests/constructor/interface_constructor_old.sol
@@ -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.