Added tests that surprisingly passed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun <T> T.foo(): (item: T) -> Unit{}
|
||||
|
||||
fun f() {
|
||||
val v = "a".foo()
|
||||
v(<caret>)
|
||||
}
|
||||
|
||||
/*
|
||||
Text: (<highlight>item: String</highlight>), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
@@ -0,0 +1,12 @@
|
||||
interface I<T> {
|
||||
fun foo(t: T): (item: T) -> Unit{}
|
||||
}
|
||||
|
||||
fun f(i: I<String>) {
|
||||
val v = i.foo()
|
||||
v(<caret>)
|
||||
}
|
||||
|
||||
/*
|
||||
Text: (<highlight>item: String</highlight>), Disabled: false, Strikeout: false, Green: true
|
||||
*/
|
||||
@@ -118,6 +118,18 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionalValueGeneric1.kt")
|
||||
public void testFunctionalValueGeneric1() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/FunctionalValueGeneric1.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("FunctionalValueGeneric2.kt")
|
||||
public void testFunctionalValueGeneric2() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/FunctionalValueGeneric2.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InheritedFunctions.kt")
|
||||
public void testInheritedFunctions() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/InheritedFunctions.kt");
|
||||
|
||||
Reference in New Issue
Block a user