solidity/test/libsolidity/syntaxTests/metaTypes/codeAccess.sol
2019-01-17 20:36:48 +01:00

13 lines
320 B
Solidity

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) {}
}
// ----