Yul IR generation for member access to type types.

This commit is contained in:
chriseth
2020-04-22 11:25:27 +02:00
parent d0fcd468f6
commit 4908101ad7
10 changed files with 117 additions and 35 deletions
@@ -6,5 +6,7 @@ contract test {
}
}
// ====
// compileViaYul: also
// ----
// answer() -> 1
@@ -12,5 +12,7 @@ contract test {
ActionChoices choices;
}
// ====
// compileViaYul: also
// ----
// getChoice() -> 2
@@ -8,6 +8,7 @@ contract test is base {
_ret = Choice.B;
}
}
// ====
// compileViaYul: also
// ----
// answer() -> 1
@@ -8,6 +8,7 @@ contract test is base {
_ret = base.Choice.B;
}
}
// ====
// compileViaYul: also
// ----
// answer() -> 1
@@ -21,7 +21,8 @@ contract Derived is Base {
return 3;
}
}
// ====
// compileViaYul: also
// ----
// g() -> 3
// f() -> 1
@@ -14,6 +14,7 @@ contract B is A {
return A.f();
}
}
// ====
// compileViaYul: also
// ----
// g() -> 1
@@ -6,6 +6,7 @@ contract A {
x = A.y;
}
}
// ====
// compileViaYul: also
// ----
// a() -> 2
@@ -5,6 +5,7 @@ contract Scope {
stateVar = Scope.stateVar;
}
}
// ====
// compileViaYul: also
// ----
// getStateVar() -> 42