[NI] Map vararg to Array if it's resolved against type variable

While this behavior is questionable, it's consistent with OI and can
 be changed in future

 #KT-36201 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2020-01-28 12:58:17 +03:00
parent 35f6810b58
commit e3b6104489
11 changed files with 111 additions and 4 deletions
@@ -1834,6 +1834,16 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/callableReference/functionReferenceWithDefaultValueAsOtherFunctionType_enabled.kt");
}
@TestMetadata("genericCallWithReferenceAgainstVararg.kt")
public void testGenericCallWithReferenceAgainstVararg() throws Exception {
runTest("compiler/testData/diagnostics/tests/callableReference/genericCallWithReferenceAgainstVararg.kt");
}
@TestMetadata("genericCallWithReferenceAgainstVarargAndKFunction.kt")
public void testGenericCallWithReferenceAgainstVarargAndKFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/callableReference/genericCallWithReferenceAgainstVarargAndKFunction.kt");
}
@TestMetadata("kt15439_completeCall.kt")
public void testKt15439_completeCall() throws Exception {
runTest("compiler/testData/diagnostics/tests/callableReference/kt15439_completeCall.kt");