Compare categories instead of types in ContractCompiler(740)

This commit is contained in:
Jason Cobb
2020-04-28 13:13:45 -04:00
parent 55e34407d3
commit 8973732b74
2 changed files with 16 additions and 1 deletions
@@ -0,0 +1,12 @@
// Test for regression of https://github.com/ethereum/solidity/issues/8406
contract C {
address constant e = 0x1212121212121212121212121000002134593163;
function f() public returns (byte z) {
assembly { z := e }
}
}
// ----
// f() -> 0x00