summaryrefslogtreecommitdiff
path: root/test/files/presentation/scope-completion-import/Test.scala
diff options
context:
space:
mode:
authorLuc Bourlier <luc.bourlier@typesafe.com>2013-11-13 17:24:59 +0100
committerLuc Bourlier <luc.bourlier@typesafe.com>2013-11-21 12:24:48 +0100
commit053a2744c6dfa339e004fbdab8994dc435e60b45 (patch)
tree39f5f9e600cc1686611d9b0ded067183ec05bed2 /test/files/presentation/scope-completion-import/Test.scala
parenteb9f0f797535386d44f9bc1f9e0c1765622baa29 (diff)
downloadscala-053a2744c6dfa339e004fbdab8994dc435e60b45.tar.gz
scala-053a2744c6dfa339e004fbdab8994dc435e60b45.tar.bz2
scala-053a2744c6dfa339e004fbdab8994dc435e60b45.zip
[nomaster] SI-7280 Scope completion not returning members provided by imports
Updates localeContext() to return the best context possible when there are none directly associated with the given position. It happens when an expression cannot be successfully typed, as no precise ContextTree covers the expression location, or if the position is not inside any expression. Adds corresponding tests (cherry picked from commit 3028327e2a2b553b12ee45519413515c8aa0865f)
Diffstat (limited to 'test/files/presentation/scope-completion-import/Test.scala')
-rw-r--r--test/files/presentation/scope-completion-import/Test.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/presentation/scope-completion-import/Test.scala b/test/files/presentation/scope-completion-import/Test.scala
new file mode 100644
index 0000000000..bec1131c4c
--- /dev/null
+++ b/test/files/presentation/scope-completion-import/Test.scala
@@ -0,0 +1,3 @@
+import scala.tools.nsc.interactive.tests.InteractiveTest
+
+object Test extends InteractiveTest \ No newline at end of file