solidity/test/libsolidity/semanticTests/immutable/assign_at_declaration.sol

9 lines
117 B
Solidity

contract A {
uint8 immutable a = 2;
function f() public view returns (uint) {
return a;
}
}
// ----
// f() -> 2