[JS IR BE] Fix fake override functions resolve

Use signature of function 'target' (a real function that will
be called instad of fake override) to make boxing/unboxing decision for
return value and type parameters on call site.
This commit is contained in:
Svyatoslav Kuzmich
2018-12-05 14:08:16 +03:00
parent 08abf5f2a2
commit ebdbe7ec30
6 changed files with 80 additions and 23 deletions
@@ -360,3 +360,5 @@ fun Scope.createTemporaryVariableWithWrappedDescriptor(
irExpression, nameHint, isMutable, origin, descriptor
).apply { descriptor.bind(this) }
}
val IrFunction.isOverridable: Boolean get() = this is IrSimpleFunction && this.isOverridable