From 57c41ce0b09564726fe5e372032a3b73b1ee79d4 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Wed, 30 Apr 2014 19:41:00 +0400 Subject: [PATCH] Smart completion: added test for KT-4929 fixed by svtk --- .../testData/completion/smart/GenericMethodArgument.kt | 10 ++++++++++ .../completion/JvmSmartCompletionTestGenerated.java | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 idea/testData/completion/smart/GenericMethodArgument.kt 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");