mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
21 lines
263 B
Solidity
21 lines
263 B
Solidity
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
|