[IR] [JS_IR] Supported fun interfaces in JS

This commit is contained in:
Igor Chevdar
2020-02-06 12:07:12 +03:00
parent 4a7b4d655c
commit 9bc7a43991
8 changed files with 45 additions and 6 deletions
@@ -415,7 +415,7 @@ fun IrClass.createImplicitParameterDeclarationWithWrappedDescriptor() {
startOffset, endOffset,
IrDeclarationOrigin.INSTANCE_RECEIVER,
IrValueParameterSymbolImpl(thisReceiverDescriptor),
Name.identifier("<this>"),
Name.special("<this>"),
index = -1,
type = symbol.typeWithParameters(typeParameters),
varargElementType = null,
@@ -65,6 +65,8 @@ abstract class SingleAbstractMethodLowering(val context: CommonBackendContext) :
abstract fun getSuperTypeForWrapper(typeOperand: IrType): IrType
override fun lower(irFile: IrFile) {
cachedImplementations.clear()
inlineCachedImplementations.clear()
enclosingContainer = irFile.declarations.filterIsInstance<IrClass>().find { it.isFileClass }
?: irFile
irFile.transformChildrenVoid()