Auto-import fix should suggest declarations that cannot be used in this position

This also should fix KT-9122 Assertion error when psi modified from IDE

 #KT-9122 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-10-02 18:50:08 +03:00
parent ab5fe60bbe
commit 1bb6dae444
5 changed files with 41 additions and 3 deletions
@@ -44,6 +44,7 @@ public sealed class CallType<TReceiver : JetElement?>(val descriptorKindFilter:
object SAFE : CallType<JetExpression>(DescriptorKindFilter.ALL)
// TODO: split into INFIX and OPERATOR (+ support other convention calls like [] etc)
object INFIX : CallType<JetExpression>(DescriptorKindFilter.FUNCTIONS exclude NonInfixExclude)
object UNARY : CallType<JetExpression>(DescriptorKindFilter.FUNCTIONS exclude NonUnaryExclude)