aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol')
-rw-r--r--test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol b/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
index 0b18b995..6aacc95e 100644
--- a/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
+++ b/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
@@ -1,7 +1,13 @@
contract Base {
constructor(uint) public {}
}
+contract Base2 {
+ constructor(uint, uint) public {}
+}
contract Derived is Base(2) { }
contract Derived2 is Base(), Derived() { }
+contract Derived3 is Base2(2,2) { }
+contract Derived4 is Base2(2), Derived() { }
// ----
-// Warning: (101-107): Wrong argument count for constructor call: 0 arguments given but expected 1.
+// TypeError: (156-162): Wrong argument count for constructor call: 0 arguments given but expected 1.
+// TypeError: (235-243): Wrong argument count for constructor call: 1 arguments given but expected 2.