Error on duplicated super constructor calls

This commit is contained in:
Federico Bond
2018-04-09 11:22:35 +02:00
committed by Daniel Kirchner
parent fe61435c27
commit 4e037281ac
7 changed files with 55 additions and 9 deletions
+4 -4
View File
@@ -5191,7 +5191,7 @@ BOOST_AUTO_TEST_CASE(pass_dynamic_arguments_to_the_base)
}
uint public m_i;
}
contract Derived is Base(2) {
contract Derived is Base {
function Derived(uint i) Base(i)
{}
}
@@ -5211,10 +5211,10 @@ BOOST_AUTO_TEST_CASE(pass_dynamic_arguments_to_the_base_base)
}
uint public m_i;
}
contract Base1 is Base(3) {
contract Base1 is Base {
function Base1(uint k) Base(k*k) {}
}
contract Derived is Base(3), Base1(2) {
contract Derived is Base, Base1 {
function Derived(uint i) Base(i) Base1(i)
{}
}
@@ -5235,7 +5235,7 @@ BOOST_AUTO_TEST_CASE(pass_dynamic_arguments_to_the_base_base_with_gap)
uint public m_i;
}
contract Base1 is Base(3) {}
contract Derived is Base(2), Base1 {
contract Derived is Base, Base1 {
function Derived(uint i) Base(i) {}
}
contract Final is Derived(4) {