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 bec4ef8 commit a353424
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 a353424

Please sign in to comment.