I think I'm missing something very simple. The following contract
contract Genobject{
uint public item;
function Genobject(uint _val){
item=_val;}
}
contract Caller{
Genobject public instance;
function Caller(){
instance= new Genobject(3);
}
function Recall() returns (uint){
return Genobject.item; }
}
Gives this error
MultiConstructor.sol:27:16: Error: Member "item" not found or not visible after argument-dependent lookup in type(contract Genobject)
return Genobject.item;
^------------^
All my types are the same, and "item" is declared publicly so it should be readable. What's going wrong?
Thanks in advance
