Added test with type alias

This commit is contained in:
Valentin Kipyatkov
2016-09-13 22:25:23 +03:00
parent d8759fcbcc
commit c0ea237ba4
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,9 @@
typealias Handler = (name: String) -> String
fun x(handler: Handler): String {
return handler(<caret>)
}
/*
Text: (<highlight>name: String</highlight>), Disabled: false, Strikeout: false, Green: true
*/
@@ -112,6 +112,12 @@ public class ParameterInfoTestGenerated extends AbstractParameterInfoTest {
doTest(fileName);
}
@TestMetadata("FunctionalValueAndTypeAlias.kt")
public void testFunctionalValueAndTypeAlias() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/FunctionalValueAndTypeAlias.kt");
doTest(fileName);
}
@TestMetadata("InheritedFunctions.kt")
public void testInheritedFunctions() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/parameterInfo/functionCall/InheritedFunctions.kt");