[FIR] Don't resolve parameters in function types in invalid code
^KTIJ-25653 fixed Merge-request: KT-MR-10831 Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
@@ -157,15 +157,7 @@ public class KtParameter extends KtNamedDeclarationStub<KotlinParameterStub> imp
|
||||
if (parent == null) {
|
||||
return false;
|
||||
}
|
||||
if (klass.isInstance(parent.getParent())) {
|
||||
//don't check ast if the tree structure is different; skip for compiled code
|
||||
if (!getContainingKtFile().isCompiled() &&
|
||||
parent.getNextSibling() instanceof PsiErrorElement) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return klass.isInstance(parent.getParent());
|
||||
}
|
||||
|
||||
public boolean isCatchParameter() {
|
||||
|
||||
Reference in New Issue
Block a user