Use the following contract, place a stop in A constructor second line. Check local variables and will be 0, not 7.
Try calling the function t2, the local variables will show correct expected values.
pragma solidity ^0.4.2;
import "lib/std.sol";
contract A {
uint public num;
event aNum(string n, uint x);
function A(uint x){
aNum("A(uint)",x);
num = x;
}
function t2(uint x){
aNum("t2(uint)",x);
num = x;
}
}
contract B is A{
function B() A(7){
}
}
Use the following contract, place a stop in A constructor second line. Check local variables and will be 0, not 7. Try calling the function t2, the local variables will show correct expected values.