Permalink
Browse files

Tested find references on class' fields

  • Loading branch information...
1 parent 58367f3 commit 59d21c34223a7dfab36b1274237a249b2a67a83b @dotta dotta committed Jul 11, 2012
@@ -184,4 +184,10 @@ class FindReferencesTests extends FindReferencesTester with HasLogger {
val expected = method("foo.Bar$.configure", List("java.lang.String")) isReferencedBy method("foo.Foo.configure")
runTest("bug1001135", "foo/Bar.scala", expected)
}
+
+ @Test
+ def findReferencesInClassFields() {
+ val expected = fieldVal("Bar$.v") isReferencedBy fieldVal("Foo.v")
+ runTest("field-ref", "Bar.scala", expected)
+ }
}
@@ -0,0 +1,3 @@
+object Bar {
+ val v/*ref*/ = 2
+}
@@ -0,0 +1,3 @@
+class Foo {
+ val v = Bar.v
+}

0 comments on commit 59d21c3

Please sign in to comment.