[FIR] allow primary constructors in interfaces to support invalid code

KTIJ-23504
This commit is contained in:
Anna Kozlova
2022-11-04 08:36:57 +01:00
parent ce94816d9e
commit 79bed083e6
17 changed files with 68 additions and 56 deletions
@@ -0,0 +1,7 @@
interface SimpleClass() : <expr>java.lang.Object()</expr>, I {
fun foo() : String = "610" + toString()
override fun toString() : String { return foo() }
}
interface I {}
@@ -0,0 +1,14 @@
KtSuccessCallInfo:
call = KtDelegatedConstructorCall:
kind = SUPER_CALL
partiallyAppliedSymbol = KtPartiallyAppliedSymbol:
dispatchReceiver = null
extensionReceiver = null
signature = KtFunctionLikeSignature:
receiverType = null
returnType = java.lang.Object
symbol = <constructor>(): java.lang.Object
valueParameters = []
callableIdIfNonLocal = null
typeArgumentsMapping = {}
argumentMapping = {}