solidity/test/libsolidity/semanticTests/immutable/assign_at_declaration.sol
2022-05-19 20:23:28 +02:00

9 lines
117 B
Solidity

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