summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [scaladoc] Adds some simple tests for Scaladoc ...Gilles Dubochet2010-09-211-0/+68
| | | | | | [scaladoc] Adds some simple tests for Scaladoc (using Scalacheck). Contributed by Kato Kazuyosh. No review.
* Tail recursive implementation of mapConserve, s...Paul Phillips2010-09-201-0/+53
| | | | | | Tail recursive implementation of mapConserve, submitted by Eric Willigers. Closes #2411, review by malayeri.
* Test case closes #2162, no review.Paul Phillips2010-09-202-0/+21
|
* Guard against overflow in fjbg.Paul Phillips2010-09-191-0/+7
|
* Fixed an issue with ListSet getting confused ab...Paul Phillips2010-09-181-0/+6
| | | | | | Fixed an issue with ListSet getting confused about what goes forward and what goes backward. No review.
* Restoring negative literal parsing behavior to ...Paul Phillips2010-09-171-0/+31
| | | | | | | | | | | | | | | | | | | | | Restoring negative literal parsing behavior to what should be the least surprising option. Thanks much to Johannes Rudolph for identifying the bug in the bytecode generator which needed addressing for us to arrive at proper -0.0 behavior, and for writing the majority of this patch. A '-' followed immediately by either a number or a period should now always be treated as a single numeric literal, which means the minus binds more tightly than anything else. A specific example of how this differs from 2.8 final is: -5.+(10) == 5.0 // and not -15.0 The full range of potentially ambiguous parses involving prefix operators, numbers, and dots is quite large and still needs to be completely and clearly specified. Closes #2378 and #3657, review by odersky, jrudolph.
* Refactorings to make iterators required by task...Aleksandar Pokopec2010-09-171-1/+1
| | | | | | Refactorings to make iterators required by task objects less restricted. No review
* Some tweaks to ListSet to make it less patholog...Paul Phillips2010-09-172-2/+15
| | | | | | | | | | | | | | | 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.
* part 2 of the dependent method refactoring: imp...Adriaan Moors2010-09-1617-33/+331
| | | | | | | | | | | | | | | part 2 of the dependent method refactoring: improved interaction with implicit search (needed for oopsla paper) more to come in this area, see e.g. #3346 (stanford edsl stuff) reopens #13, which wasn't fixed properly before imo, anyway (have a look at -Xprint:typer output before this commit: a type that's not expressible in surface syntax is inferred -- also removed duplicate test file) closes #3731: co-evolve type alias type symbols when their rhs is updated and they are referenced by type selections (see typemap) review by odersky
* closes #1569, #3731: refactored dependent metho...Adriaan Moors2010-09-169-3/+32
| | | | | | | | | | | | | | 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!]
* positioning fix for infix expressions: report e...Paul Phillips2010-09-158-8/+19
| | | | | | | | | | | | positioning fix for infix expressions: report error at the operator instead of at the receiver of a binop In general use the operator position as the Select position's point instead of the left or right expression. Position.union always uses the receiver's point as point of the result, so swapping fixes that. See http://www.scala-lang.org/node/6912 for the report.
* 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.
* Removed Throw from the set of unlabelled AST No...Paul Phillips2010-09-151-0/+6
| | | | | | Removed Throw from the set of unlabelled AST Nodes. Closes #3534, review by dragos.
* 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
|
* closes #1693: improve implicit conversion disam...Adriaan Moors2010-09-142-10/+10
| | | | | | | | | | | closes #1693: improve implicit conversion disambiguation by incorporating the expected type of the member that triggered the conversion back-ported fix by Martin in embeddings branch. review by odersky (just in case it shouldn't have been back-ported)
* Improved parallel scan performance further.Aleksandar Pokopec2010-09-141-1/+1
|
* closes #3612.Adriaan Moors2010-09-141-0/+6
| | | | | | | | | | | | | given the definitions below (for full context, see test file), before, O0 would work but O would not, now both are accepted: {{{ object O0 extends C {} object O extends C { self => } }}} review by odersky
* closes #3692: make instantiateTypeVar more care...Adriaan Moors2010-09-142-0/+31
| | | | | | | | closes #3692: make instantiateTypeVar more careful so it does not change T's info to >: T <: T. review by odersky
* relax implicit divergence checkAdriaan Moors2010-09-142-2/+8
| | | | | | | | patch contributed by Mark Harrah in http://article.gmane.org/gmane.comp.lang.scala/20700 reviewed by moors and odersky
* Improving parallel scan. No reviewAleksandar Pokopec2010-09-131-4/+10
|
* Test case closes #2399, no review.Paul Phillips2010-09-111-0/+14
|
* 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.
* better error message for default arguments.Lukas Rytz2010-09-032-13/+20
|
* Temporarily disabled collections checks to keep...Aleksandar Pokopec2010-09-0110-0/+0
| | | | | | | Temporarily disabled collections checks to keep build from breaking. No review
* Closes #1220.Iulian Dragos2010-09-012-0/+39
|
* Added scalacheck tests for parallel collections.Aleksandar Pokopec2010-09-0112-1/+1173
| | | | | Review by phaller (not urgent).
* Partial fix for #3774.Martin Odersky2010-08-312-0/+12
|
* Added scalacheck folder, scalacheck source upda...Aleksandar Pokopec2010-08-314-1/+60
| | | | | | | | | | | | | Added scalacheck folder, scalacheck source update script, and scalacheck ant tasks. Build process will now generate a scalacheck jar in the build/pack/lib directory. It generates it from the scalacheck source in the src/scalacheck dir. If the source there gets out of date, it is to be updated manually using the tools/updatescalacheck script. Review by phaller.
* partial fix for see #3772.Lukas Rytz2010-08-271-0/+5
| | | | | | | | | | | | {{{ scala> def g { case class C(); object C; } <console>:5: error: C is already defined as (compiler-generated) case class companion object C def g { case class C(); object C; } ^ }}} review by odersky
* this should fix our achy breaky build. no reviewAdriaan Moors2010-08-262-2/+4
|
* Closes #3497.Iulian Dragos2010-08-261-0/+16
|
* Closes #3776. No review.Martin Odersky2010-08-242-0/+13
|
* new tests. No review.Martin Odersky2010-08-242-0/+13
|
* 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.
* in refchecks, visit the qualifier of irrefutabl...Lukas Rytz2010-08-233-0/+10
| | | | | | in refchecks, visit the qualifier of irrefutable filters. close #3773. review by moors.
* test for see #3769. no review.Lukas Rytz2010-08-232-0/+13
|
* test for #3667. no reviewLukas Rytz2010-08-231-0/+8
|
* forgot to update check file after renaming tests.Adriaan Moors2010-08-212-4/+4
|
* closes 2462. better implicit error messages.Adriaan Moors2010-08-204-0/+33
| | | | | | | | | | | | | | | | | | @implicitNotFound(msg="Custom error message that may refer to type parameters ${T} and ${U}") trait Constraint[T, U] whenever an implicit argument of type Constraint[A, B] cannot be found, the custom error message will be used, where the type arguments are interpolated in the obvious way note: if the msg in the annotation references non-existing type params, a warning is emitted the patch also cleans up annotation argument retrieval (moved it to AnnotationInfo from Symbol) review by odersky
* closes #3575.Adriaan Moors2010-08-203-0/+14
| | | | | | | | | | cloneSymbol now preserves privateWithin -- need to reset it explicitly now when before it was assumed to be not to be carried over rewrote accessibility in overriding checks so they're more readable, but hopefully with same semantics review by odersky
* closes #2788.Adriaan Moors2010-08-192-0/+4
| | | | | | | the added flexibility'll cost ya one ClassManifest review by phaller
* closes #3777.Adriaan Moors2010-08-191-0/+7
| | | | | no review
* better fix for see #3667.Lukas Rytz2010-08-172-2/+0
|
* Revert "closes #3757.Adriaan Moors2010-08-143-15/+0
| | | | | | | Martin's review indicated this needs a better solution. This reverts commit 6a62875b08f8a2c80aefee313f86429b2793ee2e.
* closes #3757.Adriaan Moors2010-08-143-0/+15
| | | | | | | | (I verified the added access check does not increase time for ant test-opt) review by odersky