aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-03-18 00:37:02 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-03-18 01:06:52 +0800
commitd5102c1db7cd2334e127ff684a6ecdd6aff156c6 (patch)
treee083e24cc36d0199e7c03d27c8d2f62265a4b2af /test
parent2c4bce2d62dc8bfc752858db12c625aec6e5960f (diff)
downloaddexon-solidity-d5102c1db7cd2334e127ff684a6ecdd6aff156c6.tar.gz
dexon-solidity-d5102c1db7cd2334e127ff684a6ecdd6aff156c6.tar.zst
dexon-solidity-d5102c1db7cd2334e127ff684a6ecdd6aff156c6.zip
Disallow constructor in interfaces
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index f6c875f1..39306f84 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -5343,7 +5343,7 @@ BOOST_AUTO_TEST_CASE(interface_constructor)
function I();
}
)";
- success(text);
+ CHECK_ERROR(text, TypeError, "Constructor cannot be defined in interfaces");
}
BOOST_AUTO_TEST_CASE(interface_functions)