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

21 lines
263 B
Solidity
Raw Normal View History

contract C {
uint immutable public a;
uint immutable public b;
uint immutable public c;
uint immutable public d;
constructor() {
a = 1;
b = a;
c = b;
d = c;
}
}
// ====
// compileViaYul: also
// ----
// a() -> 1
// b() -> 1
// c() -> 1
// d() -> 1