aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constructor/library_constructor_old.sol
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-02 23:47:48 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-04 16:45:59 +0800
commit2e0d019ef09ac4f168a4e528f8b4a051a942a479 (patch)
treeeff18ba14670133da9c777fb446bc94e2ea0a2cb /test/libsolidity/syntaxTests/constructor/library_constructor_old.sol
parent533d5d4b1cc4374decc704de8c86ad4cef6214fc (diff)
downloaddexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.gz
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.bz2
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.lz
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.xz
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.tar.zst
dexon-solidity-2e0d019ef09ac4f168a4e528f8b4a051a942a479.zip
Adds default visibility specifier to syntax tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/constructor/library_constructor_old.sol')
-rw-r--r--test/libsolidity/syntaxTests/constructor/library_constructor_old.sol8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/constructor/library_constructor_old.sol b/test/libsolidity/syntaxTests/constructor/library_constructor_old.sol
index d4499049..271cc790 100644
--- a/test/libsolidity/syntaxTests/constructor/library_constructor_old.sol
+++ b/test/libsolidity/syntaxTests/constructor/library_constructor_old.sol
@@ -1,7 +1,7 @@
library Lib {
- function Lib();
+ function Lib() public;
}
// ----
-// Warning: (15-30): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
-// TypeError: (15-30): Constructor cannot be defined in libraries.
-// TypeError: (15-30): 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 cannot be defined in libraries.
+// TypeError: (15-37): Constructor must be implemented if declared.