summaryrefslogtreecommitdiff
path: root/test/files/pos/bug2130-2.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-20 02:13:31 +0000
committerPaul Phillips <paulp@improving.org>2011-02-20 02:13:31 +0000
commit6a570deed1790889f7036a00c045c15217313587 (patch)
tree687167b722efdc8815dac76d435e033b4534919c /test/files/pos/bug2130-2.scala
parentc3ebada7e6c604416656d47d3cd869bddd430932 (diff)
downloadscala-6a570deed1790889f7036a00c045c15217313587.tar.gz
scala-6a570deed1790889f7036a00c045c15217313587.tar.bz2
scala-6a570deed1790889f7036a00c045c15217313587.zip
Observed that some historical issues with packa...
Observed that some historical issues with package objects no longer seem so issuey. In the interests of keeping the arbitrary limitations to a minimum, re-enabled case classes in package objects (see #2130, #3437.) Closes #3437, review by odersky.
Diffstat (limited to 'test/files/pos/bug2130-2.scala')
-rw-r--r--test/files/pos/bug2130-2.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/bug2130-2.scala b/test/files/pos/bug2130-2.scala
new file mode 100644
index 0000000000..1d0b33c3e5
--- /dev/null
+++ b/test/files/pos/bug2130-2.scala
@@ -0,0 +1,17 @@
+package foo
+
+package object bar {
+ class Bippy(x: Int) {
+ class Ding
+ object Ding
+ case class Dong(x: Float)
+ }
+ object Bippy {
+ class Dingus
+ object Dingus
+ case class Dongus(x: Float)
+
+ def apply(xs: Int*) = new Bippy(xs.sum)
+ def apply() = new Bippy(5)
+ }
+}