summaryrefslogtreecommitdiff
path: root/test/files/presentation/scope-completion-4
diff options
context:
space:
mode:
authorLuc Bourlier <luc.bourlier@typesafe.com>2013-11-13 15:14:05 +0100
committerLuc Bourlier <luc.bourlier@typesafe.com>2013-11-15 14:51:06 +0100
commit3d55fe723f1af91f4d2db421f0e0965c583346dc (patch)
tree7149a46300b44add61f9ecfc4f1aeea6ab3ff9d9 /test/files/presentation/scope-completion-4
parent9c7c66ff7907e3ab814f0f4375eeaf6cdd230d5e (diff)
downloadscala-3d55fe723f1af91f4d2db421f0e0965c583346dc.tar.gz
scala-3d55fe723f1af91f4d2db421f0e0965c583346dc.tar.bz2
scala-3d55fe723f1af91f4d2db421f0e0965c583346dc.zip
Adds test cases for scope completion
Diffstat (limited to 'test/files/presentation/scope-completion-4')
-rw-r--r--test/files/presentation/scope-completion-4/Test.scala3
-rw-r--r--test/files/presentation/scope-completion-4/src/Completions.scala84
2 files changed, 87 insertions, 0 deletions
diff --git a/test/files/presentation/scope-completion-4/Test.scala b/test/files/presentation/scope-completion-4/Test.scala
new file mode 100644
index 0000000000..bec1131c4c
--- /dev/null
+++ b/test/files/presentation/scope-completion-4/Test.scala
@@ -0,0 +1,3 @@
+import scala.tools.nsc.interactive.tests.InteractiveTest
+
+object Test extends InteractiveTest \ No newline at end of file
diff --git a/test/files/presentation/scope-completion-4/src/Completions.scala b/test/files/presentation/scope-completion-4/src/Completions.scala
new file mode 100644
index 0000000000..d11315720a
--- /dev/null
+++ b/test/files/presentation/scope-completion-4/src/Completions.scala
@@ -0,0 +1,84 @@
+package test
+
+/* check that members defined in sub-block are not visible*/
+
+class Completion1 {
+
+ def f {
+
+ def ff {
+
+ def fff {
+ /*_*/
+ }
+
+ /*_*/
+
+ class ffc {
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+
+ class fc {
+
+ def fcf {
+ /*_*/
+ }
+
+ /*_*/
+
+ class fcc {
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+
+ class c {
+
+ class cc {
+
+ class ccc {
+ /*_*/
+ }
+
+ /*_*/
+
+ def ccf {
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+
+ def cf {
+
+ class cfc {
+ /*_*/
+ }
+
+ /*_*/
+
+ def cff {
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+ }
+
+ /*_*/
+}