solidity/test/libsolidity/syntaxTests/immutable/init_in_function_via_super.sol
2023-07-14 15:29:32 +02:00

14 lines
273 B
Solidity

contract B {
uint immutable x;
function g() public {}
}
contract C is B {
function f() public {
super.x = 42;
}
}
// ----
// TypeError 9582: (118-125): Member "x" not found or not visible after argument-dependent lookup in type(contract super C).