mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul IR generation for member access to type types.
This commit is contained in:
+2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user