KT-8751 Assertion in HeuriticSignatures
#KT-8751 Fixed
This commit is contained in:
@@ -36,7 +36,7 @@ fun createEnhancedValueParameters(
|
|||||||
val (newType, oldParameter) = pair
|
val (newType, oldParameter) = pair
|
||||||
ValueParameterDescriptorImpl(
|
ValueParameterDescriptorImpl(
|
||||||
newOwner,
|
newOwner,
|
||||||
null,
|
oldParameter,
|
||||||
oldParameter.getIndex(),
|
oldParameter.getIndex(),
|
||||||
oldParameter.getAnnotations(),
|
oldParameter.getAnnotations(),
|
||||||
oldParameter.getName(),
|
oldParameter.getName(),
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
class JavaClass {
|
||||||
|
<T> String foo(T p){}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
fun foo(javaClass: JavaClass, p: String) {
|
||||||
|
javaClass.foo(<caret>)
|
||||||
|
}
|
||||||
|
|
||||||
|
// EXIST: p
|
||||||
+6
@@ -101,6 +101,12 @@ public class MultiFileSmartCompletionTestGenerated extends AbstractMultiFileSmar
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("KT_8751")
|
||||||
|
public void testKT_8751() throws Exception {
|
||||||
|
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/KT_8751/");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("NoObjectDuplication")
|
@TestMetadata("NoObjectDuplication")
|
||||||
public void testNoObjectDuplication() throws Exception {
|
public void testNoObjectDuplication() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NoObjectDuplication/");
|
String fileName = JetTestUtils.navigationMetadata("idea/idea-completion/testData/smartMultiFile/NoObjectDuplication/");
|
||||||
|
|||||||
Reference in New Issue
Block a user