Add test for #KT-28993
This commit is contained in:
@@ -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")
|
||||
|
||||
Generated
+5
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user