Presentation: Fix NPE on functional type rendering
#KT-17638 Fixed
This commit is contained in:
@@ -103,6 +103,8 @@ class KotlinElementDescriptionProvider : ElementDescriptionProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun visitParameter(parameter: KtParameter, data: Unit) = parameter.typeReference?.accept(this, data) ?: "???"
|
||||||
},
|
},
|
||||||
Unit
|
Unit
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
fun <caret>test(f: (Int) -> Int) {}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
Crumbs:
|
||||||
|
test()
|
||||||
|
Tooltips:
|
||||||
|
function <b><code>test((Int) -> Int)</code></b>
|
||||||
@@ -54,6 +54,12 @@ public class BreadcrumbsTestGenerated extends AbstractBreadcrumbsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("FunctionalType.kt")
|
||||||
|
public void testFunctionalType() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/breadcrumbs/FunctionalType.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("If.kt")
|
@TestMetadata("If.kt")
|
||||||
public void testIf() throws Exception {
|
public void testIf() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/breadcrumbs/If.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/codeInsight/breadcrumbs/If.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user