Skip to content

Commit

Permalink
Don't report errors when an identifier resolves to more than one decl…
Browse files Browse the repository at this point in the history
…aration
  • Loading branch information
bjansen committed Jan 29, 2020
1 parent 5440cef commit 70aaac7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UnknownAttributeInspection : LocalInspectionTool() {
if (ref is PebbleIdentifierReference) {
val qualifier = PebbleReferencesHelper.findQualifyingMember(element)

if (qualifier != null && ref.resolve() == null) {
if (qualifier != null && ref.multiResolve(false).isEmpty()) {
val type = when (qualifier) {
is PsiField -> qualifier.type
is PsiVariable -> qualifier.type
Expand Down

0 comments on commit 70aaac7

Please sign in to comment.