Added TODO
This commit is contained in:
+1
-1
@@ -217,7 +217,7 @@ private class Processor(
|
|||||||
typeRefParent.typeReference -> {
|
typeRefParent.typeReference -> {
|
||||||
addCallableDeclarationToProcess(typeRefParent)
|
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 }
|
val usedInsideFunctionalType = parent.parents.takeWhile { it != typeRef }.any { it is KtFunctionType }
|
||||||
if (usedInsideFunctionalType) {
|
if (usedInsideFunctionalType) {
|
||||||
val function = (typeRefParent.parent as? KtParameterList)?.parent as? KtFunction
|
val function = (typeRefParent.parent as? KtParameterList)?.parent as? KtFunction
|
||||||
|
|||||||
Reference in New Issue
Block a user