solidity/test/libsolidity/syntaxTests/metaTypes/codeAccess.sol

13 lines
320 B
Solidity
Raw Normal View History

2019-01-10 11:11:55 +00:00
contract Test {
function creationOther() public pure returns (bytes memory) {
return type(Other).creationCode;
}
function runtimeOther() public pure returns (bytes memory) {
return type(Other).runtimeCode;
}
}
contract Other {
function f(uint) public pure returns (uint) {}
}
// ----