Fixed KT-7308 Exception on completion inside anonymous object

#KT-7308 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-04-07 13:12:35 +03:00
parent 8b5be4febc
commit 5954307147
@@ -73,8 +73,9 @@ public object HeuristicSignatures {
}
else {
val ownerClass = ownerType.getConstructor().getDeclarationDescriptor() ?: return null
val classFqName = DescriptorUtils.getFqNameSafe(ownerClass)
val parameterTypes = signatures[classFqName to function.getName()] ?: return null
val classFqName = DescriptorUtils.getFqName(ownerClass)
if (!classFqName.isSafe()) return null
val parameterTypes = signatures[classFqName.toSafe() to function.getName()] ?: return null
val typeStr = parameterTypes[parameterIndex]
val typeParameters = ownerClass.getTypeConstructor().getParameters()