Fix prototype JVM BE tests

This commit is contained in:
Dmitry Petrov
2017-04-12 17:16:07 +03:00
parent 2b0d3440ad
commit 40e09a39c1
2 changed files with 2 additions and 1 deletions
@@ -214,7 +214,7 @@ class LocalFunctionsLowering(val context: BackendContext): DeclarationContainerL
return if (oldCallee.typeParameters.isEmpty())
null
else oldCallee.typeParameters.associateBy(
else oldCallee.original.typeParameters.associateBy(
{ newCallee.typeParameters[it.index] },
{ oldExpression.getTypeArgument(it)!! }
)
@@ -136,6 +136,7 @@ class ClassCodegen private constructor(val irClass: IrClass, val context: JvmBac
}
fun generateMethod(method: IrFunction) {
if (method.descriptor.kind == CallableMemberDescriptor.Kind.FAKE_OVERRIDE) return
FunctionCodegen(method, this).generate()
}