mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 15:51:54 +00:00
Added TODO
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user