[kotlin] k2: test data for parameter info for incomplete code

^KTIJ-30516 fixed

GitOrigin-RevId: e97ffb78bac657d085597769e4d2b1288c4c8ed5
This commit is contained in:
Anna Kozlova
2024-07-26 14:34:47 +00:00
committed by intellij-monorepo-bot
parent 18a6a9d5a3
commit 11be10cacc
3 changed files with 21 additions and 0 deletions
@@ -216,6 +216,11 @@ public abstract class FirParameterInfoTestGenerated extends AbstractFirParameter
runTest("../../idea/tests/testData/parameterInfo/functionCall/InheritedWithCurrentFunctions.kt");
}
@TestMetadata("InvalidCandidates.kt")
public void testInvalidCandidates() throws Exception {
runTest("../../idea/tests/testData/parameterInfo/functionCall/InvalidCandidates.kt");
}
@TestMetadata("Invoke.kt")
public void testInvoke() throws Exception {
runTest("../../idea/tests/testData/parameterInfo/functionCall/Invoke.kt");
@@ -216,6 +216,11 @@ public abstract class ParameterInfoTestGenerated extends AbstractParameterInfoTe
runTest("testData/parameterInfo/functionCall/InheritedWithCurrentFunctions.kt");
}
@TestMetadata("InvalidCandidates.kt")
public void testInvalidCandidates() throws Exception {
runTest("testData/parameterInfo/functionCall/InvalidCandidates.kt");
}
@TestMetadata("Invoke.kt")
public void testInvoke() throws Exception {
runTest("testData/parameterInfo/functionCall/Invoke.kt");
@@ -0,0 +1,11 @@
class Foo<T>
fun <K> Foo<K>.foo(i: Int, s: String) {}
fun <K> Foo<K>.foo(s: String) {}
fun m(f: Foo<String>) {
f.foo(<caret>)
}
/*
Text: (<highlight>i: Int</highlight>, s: String), Disabled: false, Strikeout: false, Green: false
Text: (<highlight>s: String</highlight>), Disabled: false, Strikeout: false, Green: false
*/