solidity/test/libsolidity/semanticTests/getters/small_types.sol

20 lines
270 B
Solidity
Raw Normal View History

2020-05-28 15:39:08 +00:00
contract C {
uint8 public a;
uint16 public b;
uint128 public c;
uint public d;
2020-06-23 12:14:24 +00:00
constructor() {
2020-05-28 15:39:08 +00:00
a = 3;
b = 4;
c = 5;
d = 6;
}
}
// ====
// compileViaYul: also
// ----
// a() -> 3
// b() -> 4
// c() -> 5
// d() -> 6