Added TODO

This commit is contained in:
Valentin Kipyatkov
2016-08-26 22:21:47 +03:00
parent 1183816b52
commit d0d8ea7c69

View File

@@ -217,7 +217,7 @@ private class Processor(
typeRefParent.typeReference -> {
addCallableDeclarationToProcess(typeRefParent)
if (typeRefParent is KtParameter) {
if (typeRefParent is KtParameter) { //TODO: what if functional type is declared with "FunctionN<...>"?
val usedInsideFunctionalType = parent.parents.takeWhile { it != typeRef }.any { it is KtFunctionType }
if (usedInsideFunctionalType) {
val function = (typeRefParent.parent as? KtParameterList)?.parent as? KtFunction