solidity/test/libsolidity/semanticTests/immutable/assign_at_declaration.sol
2020-05-04 15:00:50 +02:00

11 lines
148 B
Solidity

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