diff --git a/idea/testData/completion/smart/GenericMethodArgument.kt b/idea/testData/completion/smart/GenericMethodArgument.kt new file mode 100644 index 00000000000..4a5ce82a228 --- /dev/null +++ b/idea/testData/completion/smart/GenericMethodArgument.kt @@ -0,0 +1,10 @@ +class C + +fun foo(p1: C, p2: T){} + +fun bar(s: String, o: Any) { + foo(C(), ) +} + +//EXIST: s +//ABSENT: o diff --git a/idea/tests/org/jetbrains/jet/completion/JvmSmartCompletionTestGenerated.java b/idea/tests/org/jetbrains/jet/completion/JvmSmartCompletionTestGenerated.java index 5e6acc8e415..cfb278de290 100644 --- a/idea/tests/org/jetbrains/jet/completion/JvmSmartCompletionTestGenerated.java +++ b/idea/tests/org/jetbrains/jet/completion/JvmSmartCompletionTestGenerated.java @@ -191,6 +191,11 @@ public class JvmSmartCompletionTestGenerated extends AbstractJvmSmartCompletionT doTest("idea/testData/completion/smart/FunctionReference9.kt"); } + @TestMetadata("GenericMethodArgument.kt") + public void testGenericMethodArgument() throws Exception { + doTest("idea/testData/completion/smart/GenericMethodArgument.kt"); + } + @TestMetadata("IfCondition.kt") public void testIfCondition() throws Exception { doTest("idea/testData/completion/smart/IfCondition.kt");