summaryrefslogtreecommitdiff
path: root/test/files/run
Commit message (Collapse)AuthorAgeFilesLines
* Some tweaks to ListSet to make it less patholog...Paul Phillips2010-09-171-0/+13
| | | | | | | | | | | | | | | Some tweaks to ListSet to make it less pathological in its outlook. We can see some modest improvements in run time and answer quality via the enclosed test case: // with this patch: 2.250s elapsed, assertions pass. // without this patch: 51.441s elapsed, and it's a mercy killing: java.lang.StackOverflowError at scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117) at scala.collection.immutable.ListSet$Node.contains(ListSet.scala:117) Closes #3822, review by community.
* Does what can probably be done about strange it...Paul Phillips2010-09-171-0/+17
| | | | | | | Does what can probably be done about strange iterator exhaustion behavior. Maybe we should start thinking about iteratees... Closes #3760, no review.
* closes #1569, #3731: refactored dependent metho...Adriaan Moors2010-09-162-3/+3
| | | | | | | | | | | | | | closes #1569, #3731: refactored dependent method types to get rid of debruijn indices and use singleton types instead. this is the core of the dependent types refactoring, no implicit or inference changes (one baffling discovery: resultType should drop annotations that don't subclass TypeConstraint, even in the trivial case... wow -- thanks to Tiark for helping me figure it out on a terrace in Barcelona TODO: probably need a more principled approach to the propagation of plugin type-annotations) review by odersky
* Overrode addString in TraversableViewLike.Paul Phillips2010-09-161-2/+2
| | | | | | | | | | | | | | | the Transform-derived traits within view resisted evaluating the entire sequence on a toString call, but the original view returned from a call to .view did not. This has a particularly bad result in the case of Stream, as for instance: Stream from 1 view would enter infiniteloopiland in the repl despite the fact that it should be doubly resistant to eager evaluation. Review by prokopec.
* Test for already closed #3088. No review.Paul Phillips2010-09-161-0/+9
| | | | | | | [Editorial correction: r23000 was submitted by Johannes Rudolph and my name inadvertently replaced his in the windy path from git to svn. The comments and code are his. Posterity, take note!]
* Gave StringBuilder a StringLike parent as endor...Paul Phillips2010-09-151-0/+7
| | | | | | Gave StringBuilder a StringLike parent as endorsed by martin in http://www.scala-lang.org/node/6893 . Review by odersky.
* Added implicits to create Orderings from java's...Paul Phillips2010-09-151-0/+28
| | | | | | | Added implicits to create Orderings from java's Comparable and Comparator interfaces. Also some cleanup in Sorting. Review by community.
* Stream gets a specialized, extra-lazy Iterator ...Paul Phillips2010-09-151-0/+10
| | | | | | | | Stream gets a specialized, extra-lazy Iterator so it can iterate as lazily as it traverses. Patch submitted by "Eastsun": probably not his real name, but that's what we call him. Closes #3273, review by prokopec.
* Close #3835, review by extemporeLukas Rytz2010-09-142-0/+6
|
* Proposed implementation of 'unlift' on Function...Paul Phillips2010-09-091-0/+25
| | | | | | | Proposed implementation of 'unlift' on Function1, the inverse function of PartialFunction#lift. Review by rytz and other interested parties. References #3825, but not closing until this is further considered.
* Closes #1220.Iulian Dragos2010-09-012-0/+39
|
* Closes #3776. No review.Martin Odersky2010-08-241-0/+3
|
* Fix and test case for broken linked lists, cont...Paul Phillips2010-08-231-0/+100
| | | | | | Fix and test case for broken linked lists, contributed by Lucien Pereira. Closes #3361, no review.
* test for #3667. no reviewLukas Rytz2010-08-231-0/+8
|
* closes #2788.Adriaan Moors2010-08-192-0/+4
| | | | | | | the added flexibility'll cost ya one ClassManifest review by phaller
* fix an msil bug (code gen of exception handlers).Lukas Rytz2010-08-102-0/+19
|
* close #7226.Lukas Rytz2010-08-092-0/+10
|
* Disallowed super.XX calls to Any methods which ...Paul Phillips2010-08-071-7/+2
| | | | | | | | | | Disallowed super.XX calls to Any methods which are presently either crashing the compiler (isInstanceOf) or leading to runtime failure (== and !=) in addition to one which was being rewritten to a this call but makes more sense disallowed like the others (##). Closes #3736, review by odersky.
* fixes names/defaults when using :_* for specify...Lukas Rytz2010-08-052-0/+27
| | | | | | fixes names/defaults when using :_* for specifying repeated parameters. close #3697, no review.
* close #3667.Lukas Rytz2010-08-052-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | scala> def ser(o: AnyRef) = new java.io.ObjectOutputStream(new java.io.ByteArrayOutputStream()).writeObject(o) ser: (o: AnyRef)Unit scala> @serializable class Outer { | case class Inner(x: Int) | } defined class Outer scala> val o = new Outer o: Outer = Outer@34469729 scala> ser(new o.Inner(1)) scala> o.Inner // initialize the Inner$module field of o res1: o.Inner.type = Inner scala> ser(new o.Inner(1)) java.io.NotSerializableException: Outer$Inner$ review by extempore.
* added @deprecatedName annotation, allowing to d...Lukas Rytz2010-08-032-0/+19
| | | | | | added @deprecatedName annotation, allowing to deprecate parameter names. review by prokopec.
* Fixes priority queues and makes them iterables ...Aleksandar Pokopec2010-07-291-346/+337
| | | | | Fixes priority queues and makes them iterables now.
* Added merge function to HashTrie.merge. No review.Aleksandar Pokopec2010-07-281-0/+36
|
* new test files.Martin Odersky2010-07-191-0/+4
|
* Moved the burden of forgivingness for string sl...Paul Phillips2010-07-141-0/+19
| | | | | | Moved the burden of forgivingness for string slices into StringOps where it belongs. Review by odersky.
* close #3648 (again).Lukas Rytz2010-07-132-11/+0
|
* Added test case for #3645. Closes #3645.Philipp Haller2010-07-121-0/+6
|
* Closes #3493. Review by extempore.Aleksandar Pokopec2010-07-091-0/+15
|
* closes #3603. no reviewAleksandar Pokopec2010-07-091-0/+18
|
* close #3648.Lukas Rytz2010-07-093-0/+16
|
* Fixes #3580. Review by extempore.Aleksandar Pokopec2010-07-051-0/+17
|
* Closes #1766 (structural method dispatch broken...Gilles Dubochet2010-07-021-0/+16
| | | | | | Closes #1766 (structural method dispatch broken in class with multiple constructors). Review by prokopec.
* Made a null output sink and applied it to the r...Paul Phillips2010-07-022-0/+1
| | | | | | | Made a null output sink and applied it to the recently failing test, which is displaying non-deterministic output by way of the underlying parser. No review.
* Test case for (long ago closed) #2106, no review.Paul Phillips2010-07-022-0/+9
|
* Fixed an infinite loop in the xml parser on inv...Paul Phillips2010-07-012-0/+5
| | | | | | Fixed an infinite loop in the xml parser on invalid input. Also found an off by one bug in Source while fixing it. No review.
* Enumeration fixes.Paul Phillips2010-06-302-0/+13
| | | | | | | | | | | | correctly simply by inspecting method signatures (because a Value from a different Enumeration stored in a val looks identical to one from this Enumeration) so I have Value store the outer Enum for comparison purposes. This won't make anything new uncollectable because they already have an $outer pointing there. This also simplified the reflection logic: it's an eq test rather than a series of heuristics. Closes #3616, #3615. Review by phaller.
* Removed unfinished Jenkins hashcode for final.Paul Phillips2010-06-272-18/+0
|
* A wholesale reversion of the pattern matcher to...Paul Phillips2010-06-161-9/+0
| | | | | | | | A wholesale reversion of the pattern matcher to r21939, motivated by the appearance of #3578. Closes #3578, reopens #2800, #3050. Review by moors. (I can't keep saying "no review" when every move I make in here seems to break something.)
* first part of r22260Antonio Cunei2010-06-161-2/+2
|
* removed integration of placeholder syntax and n...Lukas Rytz2010-06-162-30/+15
| | | | | | removed integration of placeholder syntax and named arguments. review by odersky
* temporarily reversing r22260; will be shortly r...Antonio Cunei2010-06-161-2/+2
| | | | | | temporarily reversing r22260; will be shortly re-committed in two separate portions.
* Fixes #3563. Review by extempore.Aleksandar Pokopec2010-06-161-0/+21
|
* Added test case for #432. No review.Gilles Dubochet2010-06-141-0/+15
|
* Closes #3558.Iulian Dragos2010-06-142-0/+16
|
* Changed groupBy to return immutable.Map.Paul Phillips2010-06-131-2/+2
|
* Make local lazy values thread-safe.Iulian Dragos2010-06-092-0/+18
| | | | | | is now guaranteed to be initialized at most once, even when accessed from different threads. Closes #3007, review by odersky.
* Most of the iterate implementations were callin...Paul Phillips2010-06-071-0/+7
| | | | | | | | Most of the iterate implementations were calling the given function one too many times, leading to tragic failure if the function could not handle this (such as repeatedly applying tail.) Closes #3540, review by prokopec.
* Fix for #3284.Derek Chen-Beker2010-06-042-15/+103
| | | | | | | | but in the interest of not breaking backwards compatibility, the JSON.parse method has been marked deprecated for now. Unit tests have been fixed so that this won't break the build this time.
* Fix for init-order caused NPE in NumericRange.Paul Phillips2010-06-041-0/+16
| | | | | | | ran across some tortured logic trying to accomodate the long abandoned idea of having 5 != 5L, so simplified the contains method. Closes #3518, no review.
* Burned by a last minute adjustment, I lost the ...Paul Phillips2010-06-041-0/+2
| | | | | | | Burned by a last minute adjustment, I lost the downward counting direction. It is a seriously fiddly process to adjust Range and I don't recommend it to anyone. Closes #3529 over again. Review by prokopec.