diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-08 14:44:21 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-12 01:01:27 -0700 |
commit | a2c870569c124cbf090f7c85cea3269d95ff4170 (patch) | |
tree | 00be481ca16caa3971ac093aa74d5305e62d3c79 /test/files/neg | |
parent | ea651e6fe187920d207aa5fe3c645d294e72e627 (diff) | |
download | scala-a2c870569c124cbf090f7c85cea3269d95ff4170.tar.gz scala-a2c870569c124cbf090f7c85cea3269d95ff4170.tar.bz2 scala-a2c870569c124cbf090f7c85cea3269d95ff4170.zip |
Fix for SI-6340, error message regression.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t6340.check | 10 | ||||
-rw-r--r-- | test/files/neg/t6340.scala | 21 |
2 files changed, 31 insertions, 0 deletions
diff --git a/test/files/neg/t6340.check b/test/files/neg/t6340.check new file mode 100644 index 0000000000..f18b8c3f4b --- /dev/null +++ b/test/files/neg/t6340.check @@ -0,0 +1,10 @@ +t6340.scala:11: error: value D is not a member of object Foo + import Foo.{ A, B, C, D, E, X, Y, Z } + ^ +t6340.scala:16: error: not found: type D + val d = new D + ^ +t6340.scala:17: error: not found: type W + val w = new W + ^ +three errors found diff --git a/test/files/neg/t6340.scala b/test/files/neg/t6340.scala new file mode 100644 index 0000000000..8934d5c15d --- /dev/null +++ b/test/files/neg/t6340.scala @@ -0,0 +1,21 @@ +object Foo { + class A + class B + class C + class X + class Y + class Z +} + +object Test { + import Foo.{ A, B, C, D, E, X, Y, Z } + + val a = new A + val b = new B + val c = new C + val d = new D + val w = new W + val x = new X + val y = new Y + val z = new Z +} |