Minor: Add test to check inferred types shown correctly in parameter info
#KT-11858 Obsolete
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
fun <A,B> foo(a: A, b: B): B = b
|
||||||
|
fun test(x: Any?) = foo(x, x!!<caret>).hashCode()
|
||||||
|
|
||||||
|
//Text: (a: Any?, <highlight>b: Any</highlight>), Disabled: false, Strikeout: false, Green: true
|
||||||
@@ -335,6 +335,12 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("TypeInference.kt")
|
||||||
|
public void testTypeInference() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/TypeInference.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("UpdateOnTyping.kt")
|
@TestMetadata("UpdateOnTyping.kt")
|
||||||
public void testUpdateOnTyping() throws Exception {
|
public void testUpdateOnTyping() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/UpdateOnTyping.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/UpdateOnTyping.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user