painless: Also remove boxing for reads and method calls
This commit is contained in:
parent
604bcd9320
commit
d221cd14d2
|
@ -242,6 +242,11 @@ public final class EChain extends AExpression {
|
|||
private void analyzeRead() {
|
||||
final ALink last = links.get(links.size() - 1);
|
||||
|
||||
// If the load node is a DEF node, we adapt its after type to use _this_ expected output type:
|
||||
if (last instanceof ADefLink && this.expected != null) {
|
||||
last.after = this.expected;
|
||||
}
|
||||
|
||||
constant = last.string;
|
||||
statement = last.statement;
|
||||
actual = last.after;
|
||||
|
|
Loading…
Reference in New Issue