Add test for #KT-28993

This commit is contained in:
Dmitriy Novozhilov
2019-02-01 12:50:51 +03:00
parent 4b1e5e8005
commit c60bce88c2
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,14 @@
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER
// !WITH_NEW_INFERENCE
fun test(x: () -> Unit, y: () -> Unit) {
}
fun main() {
<!OI;NO_VALUE_FOR_PARAMETER!>test<!> {
1
} <!MANY_LAMBDA_EXPRESSION_ARGUMENTS!>{
2
}<!>
}
@@ -0,0 +1,4 @@
package
public fun main(): kotlin.Unit
public fun test(/*0*/ x: () -> kotlin.Unit, /*1*/ y: () -> kotlin.Unit): kotlin.Unit
@@ -2917,6 +2917,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
public void testSpreadVarargs() throws Exception {
runTest("compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt");
}
@TestMetadata("twoLambdasFunction.kt")
public void testTwoLambdasFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/tests/classLiteral")
@@ -2917,6 +2917,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
public void testSpreadVarargs() throws Exception {
runTest("compiler/testData/diagnostics/tests/checkArguments/SpreadVarargs.kt");
}
@TestMetadata("twoLambdasFunction.kt")
public void testTwoLambdasFunction() throws Exception {
runTest("compiler/testData/diagnostics/tests/checkArguments/twoLambdasFunction.kt");
}
}
@TestMetadata("compiler/testData/diagnostics/tests/classLiteral")