diff options
author | Luc Bourlier <luc.bourlier@typesafe.com> | 2013-11-13 15:14:05 +0100 |
---|---|---|
committer | Luc Bourlier <luc.bourlier@typesafe.com> | 2013-11-21 12:24:43 +0100 |
commit | eb9f0f797535386d44f9bc1f9e0c1765622baa29 (patch) | |
tree | 371b7fd9c8dda31328f81ae59ed066c9da483bbb /test/files/presentation/scope-completion-2/src | |
parent | 3a8796da1a321b5b7bb547c3c0cd9f62b5d0279d (diff) | |
download | scala-eb9f0f797535386d44f9bc1f9e0c1765622baa29.tar.gz scala-eb9f0f797535386d44f9bc1f9e0c1765622baa29.tar.bz2 scala-eb9f0f797535386d44f9bc1f9e0c1765622baa29.zip |
[nomaster] Adds test cases for scope completion
(cherry picked from commit 3d55fe723f1af91f4d2db421f0e0965c583346dc)
Diffstat (limited to 'test/files/presentation/scope-completion-2/src')
-rw-r--r-- | test/files/presentation/scope-completion-2/src/Completions.scala | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/files/presentation/scope-completion-2/src/Completions.scala b/test/files/presentation/scope-completion-2/src/Completions.scala new file mode 100644 index 0000000000..96d38f1b85 --- /dev/null +++ b/test/files/presentation/scope-completion-2/src/Completions.scala @@ -0,0 +1,35 @@ +package test + +/* private elements are visible in the companion class/object */ + +class Completion1 { + + import Completion1._ + + private val vc1 = 0 + private def fc1 = 0 + + private class Cc1 + + def test { + // needs to be done in a method, because of SI-7280 + /*_*/ + } +} + +object Completion1 { + + val c = new Completion1() + import c._ + + private val vo1 = 0 + private def fo1 = 0 + + private class Co1 + + def test { + // needs to be done in a method, because of SI-7280 + /*_*/ + } +} + |