PSI2IR KT-44013 WA: function interface constructor call accepted by FE
This commit is contained in:
committed by
TeamCityServer
parent
704b5a0e13
commit
660208740e
@@ -239,7 +239,8 @@ class BodyGenerator(
|
||||
(ktClassOrObject as? KtClassOrObject)?.getSuperTypeList()?.let { ktSuperTypeList ->
|
||||
for (ktSuperTypeListEntry in ktSuperTypeList.entries) {
|
||||
if (ktSuperTypeListEntry is KtSuperTypeCallEntry) {
|
||||
val superConstructorCall = statementGenerator.pregenerateCall(getResolvedCall(ktSuperTypeListEntry)!!)
|
||||
val resolvedCall = getResolvedCall(ktSuperTypeListEntry) ?: continue
|
||||
val superConstructorCall = statementGenerator.pregenerateCall(resolvedCall)
|
||||
val irSuperConstructorCall = CallGenerator(statementGenerator).generateDelegatingConstructorCall(
|
||||
ktSuperTypeListEntry.startOffsetSkippingComments, ktSuperTypeListEntry.endOffset, superConstructorCall
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user