Get type arguments from supertype in supercall

Otherwise, when the function has inline class parameter, we get ICE.
We do not get the error without inline class parameter, since we
substitute type parameters in limited situations, which includes
inline class lowering.

 #KT-51157 Fixed
This commit is contained in:
Ilmir Usmanov
2022-02-09 04:50:23 +01:00
parent 02cfc8b821
commit 47ee0e5b0a
10 changed files with 73 additions and 2 deletions
@@ -16655,6 +16655,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/inlineClasses/kt48993.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());
}
@TestMetadata("kt51157.kt")
public void testKt51157() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/kt51157.kt");
}
@TestMetadata("mangledDefaultParameterFunction.kt")
public void testMangledDefaultParameterFunction() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/mangledDefaultParameterFunction.kt", TransformersFunctions.getReplaceOptionalJvmInlineAnnotationWithReal());