solidity/test/libsolidity/syntaxTests/immutable/creationCode.sol
2021-04-20 17:38:29 +02:00

11 lines
191 B
Solidity

contract A {
address public immutable user = address(0x0);
}
contract Test {
function test() public pure returns(bytes memory) {
return type(A).creationCode;
}
}
// ----