summaryrefslogtreecommitdiff
path: root/test/files/scalap/caseObject
Commit message (Collapse)AuthorAgeFilesLines
* Deprecated the @serializable annotation, introd...Lukas Rytz2010-11-301-1/+1
| | | | | | | | | | | | | | | | | | | Deprecated the @serializable annotation, introduce a new trait "scala.Serializable" which has to be extended instead (cross-platform). Known issues: - Companion objects of serializable classes (including case classes) are automatically made serializable. However, they don't extend "Serializable" statically because of the known difficulty (should be done before typing, but hard). - Writing "case class C() extends Serializable" gives "error: trait Serializable is inherited twice" - Functions are serializable, but don't extend Serializable dynamically (could be fixed by making FunctionN Serializable - shouldn't we?) Note that @SerialVersionUID continues to be an annotation; it generates a static field, which is not possible otherwise in scala. Review by dragos, extempore. Question to dragos: in JavaPlatform.isMaybeBoxed, why is there a test for "JavaSerializableClass"? Is that correct?
* Half-disabled productElementName until I have t...Paul Phillips2010-03-191-1/+0
| | | | | | | Half-disabled productElementName until I have time to reimplement it more to martin's liking. ("Half" because full disabling is not possible until starr has forgotten about it.) No review.
* Added productElementName to Product.Paul Phillips2010-02-231-0/+1
| | | | | | | | | | | | | | | case class field names your heart desires. Review by odersky. scala> case class Foo[T](kilroy: String, burma: List[T], shave: Seq[Int]) defined class Foo scala> Foo("was here", List('myanmar), Seq(25, 25)) res0: Foo[Symbol] = Foo(was here,List('myanmar),List(25, 25)) scala> 0 to 2 map (res0 productElementName _) res1: IndexedSeq[String] = IndexedSeq(kilroy, burma, shave)
* [no content change] Fixed all SVN properties: m...Gilles Dubochet2009-09-242-2/+2
| | | | | | | | [no content change] Fixed all SVN properties: mimes, EOL, executable. Id expansion is consistently enabled for Scala/Java/C# sources in 'src/' and consistently disabled and removed from everywhere else: there should not be any dead Id tags anymore.
* Implementation and test cases for canEqual meth...Paul Phillips2009-07-091-0/+1
| | | | | | | Implementation and test cases for canEqual method in case classes. Now the autogenerated equality method inquires with the argument as to whether other.canEqual(this) before returning true.
* scalap changed to treat named parameters and pa...ilyas2009-06-292-0/+11
| | | | | scalap changed to treat named parameters and package objects
* Named and default argumentsLukas Rytz2009-05-302-11/+0
| | | | | | | - MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy"
* Scala decompiler test suite addedilyas2009-05-062-0/+11