mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
292 B
Solidity
12 lines
292 B
Solidity
|
contract A {
|
||
|
address public immutable user = address(0x0);
|
||
|
}
|
||
|
|
||
|
contract Test {
|
||
|
function test() public pure returns(bytes memory) {
|
||
|
return type(A).runtimeCode;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (153-172): "runtimeCode" is not available for contracts containing immutable variables.
|