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

11 lines
148 B
Solidity
Raw Normal View History

contract A {
uint8 immutable a = 2;
function f() public view returns (uint) {
return a;
}
}
2020-04-02 18:06:52 +00:00
// ====
// compileViaYul: also
// ----
// f() -> 2