diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-24 08:51:18 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-10-24 08:51:18 -0700 |
commit | 2c554249fd8e99286134b217027b6e3cb2c92d77 (patch) | |
tree | 7b7fb4b9b45a2ec7afbec7ecb527feb790617c5c /test/files/run/virtpatmat_extends_product.scala | |
parent | c0fac9ecabb7c5ea01cbb924e79aa4f14eb1e7d1 (diff) | |
parent | d7f498ac9cccd7473be8f416a1620548ca8fca9b (diff) | |
download | scala-2c554249fd8e99286134b217027b6e3cb2c92d77.tar.gz scala-2c554249fd8e99286134b217027b6e3cb2c92d77.tar.bz2 scala-2c554249fd8e99286134b217027b6e3cb2c92d77.zip |
Merge pull request #1519 from paulp/no-product-n
Disabled generation of _1, _2, etc. methods.
Diffstat (limited to 'test/files/run/virtpatmat_extends_product.scala')
-rw-r--r-- | test/files/run/virtpatmat_extends_product.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/files/run/virtpatmat_extends_product.scala b/test/files/run/virtpatmat_extends_product.scala index e564f4430b..4b4bc634a7 100644 --- a/test/files/run/virtpatmat_extends_product.scala +++ b/test/files/run/virtpatmat_extends_product.scala @@ -1,5 +1,8 @@ object Test extends App { - case class AnnotationInfo(a: String, b: Int) extends Product2[String, Int] + case class AnnotationInfo(a: String, b: Int) extends Product2[String, Int] { + def _1 = a + def _2 = b + } // if we're not careful in unapplyTypeListFromReturnType, the generated unapply is // thought to return two components instead of one, since AnnotationInfo (the result of the unapply) is a Product2 @@ -8,4 +11,4 @@ object Test extends App { NestedAnnotArg(AnnotationInfo("a", 1)) match { case NestedAnnotArg(x) => println(x) } -}
\ No newline at end of file +} |