summaryrefslogtreecommitdiff
path: root/test/files/pos/caseclass-productN.flags
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-07-21 23:35:54 +0000
committerPaul Phillips <paulp@improving.org>2011-07-21 23:35:54 +0000
commitaafc0fe172b8db946ccf74110d2f6fa257ffa094 (patch)
tree6d2a5f3485a12beacfa5d1462218642463f55c7e /test/files/pos/caseclass-productN.flags
parentce895bbb40b26a64191c6be711643c50977072d6 (diff)
downloadscala-aafc0fe172b8db946ccf74110d2f6fa257ffa094.tar.gz
scala-aafc0fe172b8db946ccf74110d2f6fa257ffa094.tar.bz2
scala-aafc0fe172b8db946ccf74110d2f6fa257ffa094.zip
As per discussion documented in SI-1799, brough...
As per discussion documented in SI-1799, brought back the ProductN traits and synthesized them into case classes. It's -Xexperimental for now because there may be minor implications for existing code which should be discussed. And also because I snuck in another "improvement" but it's probably too dangerous to be touching productIterator directly and it should go into something else. scala> case class Bippy(x: Int, y: Int) defined class Bippy scala> Bippy(5, 10).productIterator res0: Iterator[Int] = non-empty iterator ^^^----- as opposed to Iterator[Any] There is an even better idea available than lubbing the case class field types: it starts with "H" and ends with "List"... Review by oderksy.
Diffstat (limited to 'test/files/pos/caseclass-productN.flags')
-rw-r--r--test/files/pos/caseclass-productN.flags1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/files/pos/caseclass-productN.flags b/test/files/pos/caseclass-productN.flags
new file mode 100644
index 0000000000..e1b37447c9
--- /dev/null
+++ b/test/files/pos/caseclass-productN.flags
@@ -0,0 +1 @@
+-Xexperimental \ No newline at end of file