//Write your own contracts here. Currently compiles using solc v0.4.15+commit.bbb8e64f. pragma solidity ^0.4.18; contract Foo { uint public value = 123; } contract Bar { Foo foo; function MyContract(address otherAddress) { foo = Foo(otherAddress); } function getFooValue() constant returns(uint){ return foo.value(); } }
0.4.18