Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Nov 28, 2024
1 parent f341d42 commit e621a2e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ internal class StaticImportsTest : BaseTest() {
assertTrue(staticField.modifiers.contains("static"))
assertFalse(nonStaticField.modifiers.contains("static"))

val declaredReferences = main.allChildren<MemberExpression>()
val declaredReferences = main.refs
val usage = findByUniqueName(declaredReferences, "staticField")
assertEquals(staticField, usage.refersTo)
assertRefersTo(usage, staticField)

val nonStatic = findByUniqueName(declaredReferences, "nonStaticField")
assertNotEquals(nonStaticField, nonStatic.refersTo)
assertRefersTo(nonStatic, nonStaticField)
assertTrue(nonStatic.refersTo!!.isInferred)
}
}

0 comments on commit e621a2e

Please sign in to comment.