Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tested find references on class' fields

  • Loading branch information...
commit 59d21c34223a7dfab36b1274237a249b2a67a83b 1 parent 58367f3
@dotta dotta authored
View
6 ...scala-ide.sdt.core.tests/src/scala/tools/eclipse/findreferences/FindReferencesTests.scala
@@ -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)
+ }
}
View
3  org.scala-ide.sdt.core.tests/test-workspace/find-references/field-ref/src/Bar.scala
@@ -0,0 +1,3 @@
+object Bar {
+ val v/*ref*/ = 2
+}
View
3  org.scala-ide.sdt.core.tests/test-workspace/find-references/field-ref/src/Foo.scala
@@ -0,0 +1,3 @@
+class Foo {
+ val v = Bar.v
+}
Please sign in to comment.
Something went wrong with that request. Please try again.