summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Unreverting r23174. No review.Paul Phillips2010-10-065-1/+78
|
* Fixed a failing test. No reviewAleksandar Pokopec2010-10-061-9/+19
|
* Adding immutable parallel hashsets.Aleksandar Pokopec2010-10-051-0/+47
| | | | | | | | | | Fixing an issue with hashset splitters where the splitting does not work if some elements have already been iterated. Added parallel collections exception handling. Added parallel collections break control. Renaming ParHashTrie -> ParHashMap. The part with immutable.{HashSet, HashMap} - review by rompf
* Improves exhaustiveness analysis to not warn ab...Paul Phillips2010-10-057-3/+67
| | | | | | | | Improves exhaustiveness analysis to not warn about types which cannot match due to nonconformant type parameters. Also, look at the different warnings emitted in the test case based on the presence of a constraint. Nifty! Closes #3683, no review.
* Reverted a test. No review.Aleksandar Pokopec2010-10-051-2/+2
|
* Added back another previously failing test.Aleksandar Pokopec2010-10-051-2/+2
|
* Added back a failing test. No review.Aleksandar Pokopec2010-10-051-0/+0
|
* Disabled a failing scaladoc test. No review.Aleksandar Pokopec2010-10-051-0/+0
|
* Disabling a test from last commit until figurin...Aleksandar Pokopec2010-10-051-2/+2
| | | | | | Disabling a test from last commit until figuring out why it fails on the server. No review
* An issue with scalacheck and actors where an ex...Aleksandar Pokopec2010-10-057-414/+434
| | | | | An issue with scalacheck and actors where an excess of thread pools gets created - tmp fix. No review.
* Somewhere along the way AnyVal stopped working ...Paul Phillips2010-10-053-0/+19
| | | | | | Somewhere along the way AnyVal stopped working as sealed. (It was still sealed but had lost its children.) Closes #3163, review by rytz.
* Massively simplified the exhaustiveness checker...Paul Phillips2010-10-053-0/+65
| | | | | | | Massively simplified the exhaustiveness checker with no measurable loss of fidelity. I might be the only one who can be unsurprised by such a bloody diff: anyone else would rightly say "how on earth..." No review.
* Reverts r23174, which I believe will bring the ...Paul Phillips2010-10-045-78/+1
| | | | | | Reverts r23174, which I believe will bring the build back to life. It only chokes under -optimise. No review.
* Fixed a scalacheck test group "test entire subd...Aleksandar Pokopec2010-10-0413-614/+596
| | | | | | | Fixed a scalacheck test group "test entire subdirectory" problem. It's now possible to add scalacheck tests consisting of multiple files. No review.
* Another batch of busywork shuffling the content...Paul Phillips2010-10-0429-169/+36
| | | | | | Another batch of busywork shuffling the contents of pending around. Can almost see some daylight. No review.
* Pattern matching on Array types, working for re...Paul Phillips2010-10-046-20/+94
| | | | | | | | | | | | | | | | | Pattern matching on Array types, working for reals. def f[T](a: Array[T]) = a match { case x: Array[Int] => x(0) case x: Array[Double] => 2 // etc. } I'd also like to thank "instantiateTypeVar" for displacing the mechanical spiders and giant squid beings which used to fill my nightmares. Now that I know true horror, I welcome the squid. Closes #2755, review by odersky.
* Work on the pattern matcher.Paul Phillips2010-10-035-1/+78
| | | | | | | | | | | | | | | | | | | | | | | | patches for #3887 and #3888, but I determined that I could achieve the same effect by deleting a bunch of code, so I did. This left only a few lines in TransMatch, so I eliminated it, which led me to remember that many places still reference non-existent phase transmatch, so those were updated. Notes: * This swaps equality tests on stable identifier patterns. They have never conformed to the spec (as noted long ago in ticket #785) which says "The pattern matches any value v such that r == v" whereas until now the test being performed was v == r. * An issue was introduced with specialization in that the implementation of "isTupleType" in Definitions relied upon sym == TupleClass(elems.length). This test is untrue for specialized tuples, causing mysterious behavior because only some tuples are specialized. There is now "isTupleTypeOrSubtype" although it seems likely the former implementation is unnecessary. The issue is sidestepped if one uses "getProductArgs" to retrieve the element types because it sifts through the base types for the Product symbol. Closes #3887 and #3888, review by dmharrah.
* One last batch of test cleanups and I think I'l...Paul Phillips2010-10-0321-105/+80
| | | | | | | One last batch of test cleanups and I think I'll call it a day. If you're worried I didn't leave any for anyone else, let me put your fears to rest. PLENTY left to sift through. No review.
* The next batch of tests put up a little more st...Paul Phillips2010-10-0221-306/+23
| | | | | | | | | | | | | | The next batch of tests put up a little more struggle, but only a little. See test/pending/pos/unappgadteval.scala (the changes for which were in the previous commit) for an example of a test which might be on to something. Any idea what it would take to get it working? // the key lines case i @ Suc() => { (y: Int) => y + 1 } // a = Int => Int case f @ Lam[b,c](x, e) => { (y: b) => eval(e, env.extend(x, y)) } // a = b=>c No review.
* Sorting through the tests in pending from oldes...Paul Phillips2010-10-0228-419/+155
| | | | | | | | | | | | | | | | | Sorting through the tests in pending from oldest to newest because I don't believe in having useless appendages. The verdict on the oldest fifteen tests is: 15/15 are fixed. Many were already in files under a different name. I moved a few and deleted the rest. Fun fact of the day: apparently there was a time when to call into java varargs with no arguments you might have to write something like: getClass().getMethod("getCount", Array[java.lang.Class[T] forSome { type T }]()) On this basis I retract any complaints I've ever had about anything. There is one question mark outlined in pos/testCoercionThis.scala, a file formerly called pos/moors.scala and therefore... review by moors.
* Another attempt for #1591.Hubert Plociniczak2010-10-015-0/+61
|
* Still giddy with the thrill of fixing #266, I v...Paul Phillips2010-09-301-0/+15
| | | | | | | | | | | | | | | | Still giddy with the thrill of fixing #266, I vanquish another pattern matcher bug from the dawn of time. If you've always wanted to write code like this: class Bob[K[_]] { def foo(other: Any) = other match { case x: (Bob[X] forSome { type X[_] }) => } } Now is your chance. Closes #1427, review by moors. (Is there a better way to "shake off" the pattern existential?)
* [scaladoc] JavaScript template search uses a st...Gilles Dubochet2010-09-301-0/+96
| | | | | | | [scaladoc] JavaScript template search uses a statically built index to considerably increase performance. Contributed by Kato Kazuyoshi. Review by dubochet.
* Revert changes related to #1591. no review.Hubert Plociniczak2010-09-294-48/+0
|
* closes #3859.Adriaan Moors2010-09-281-0/+4
| | | | | review by odersky
* Fix and test case for #3855.Paul Phillips2010-09-281-0/+18
| | | | | | | | | | | | | | | | | | | | | | | situations where a mutable var will later be lifted. As a point of interest, this bug reveals itself fairly clearly if you use a build since r23112 and run the checker thusly: scalac -d /tmp -Ycheck-debug -Ycheck:icode -Xprint:icode test/files/run/bug3855.scala It dies with the following explanation: Output changed for Block 3 [S: 2] [P: 1, 4] Exception in thread "main" scala.tools.nsc.backend.icode.CheckerException: Incompatible stacks: TypeStack() and TypeStack(2 elems) { REFERENCE(class IntRef) REFERENCE(class IntRef) } in Test.main at entry to block: 2 And indeed that was the source of the reported verifyerror. Review by i. dragos.
* Refined crash avoidance related to self type te...Paul Phillips2010-09-281-0/+17
| | | | | | | | | | | | | | | Refined crash avoidance related to self type tests in anonymous classes as introduced for #576. Now it really only excludes anonymous classes. Suddenly, this works: override def equals(other: Any) = other match { case _: this.type => true case _ => false } Who will be the first to roll out some reference equality in the this.type style? No review.
* Fixed an ancient crasher in explicitouter invol...Paul Phillips2010-09-281-0/+23
| | | | | | Fixed an ancient crasher in explicitouter involving singleton self-types. Closes #266, review by odersky.
* Cleaning up the contents of test.Paul Phillips2010-09-2866-629/+199
| | | | | | | | | | | including "CheckEither", written against scalacheck 1.2 in the year 471 AD. Removed all the duplicates I could find, mostly between pending and files. Renamed a bunch of tests so they wouldn't look like likely duplicates next time around. Nominated somebody else to do this once in a while. No review.
* Bringing the tree and icode checkers back to life.Paul Phillips2010-09-2711-0/+969
| | | | | | | | | | | | | | | | | | | | | | | | build/pack/bin/scalac -d /tmp -Ycheck-debug -Ycheck:all \ src/compiler/scala/tools/nsc/Global.scala That blows up in constructors as most files do, so also try it with -Ycheck:icode to see the pretty icode output (for a little while anyway, after which it will again blow up.) Our work has only just begun! See test/checker-tests/fail*.scala for 11 examples of places where the checker cries foul. Many of them are telling us about real issues and we should listen, but I will need help to figure out which are legitimate and which should be eliminated by altering the checkers. This patch also hacks on some territory the checkers drew me into, especially TypeKinds, where I figured anything which had been commented out since 2005 was fair game. (Optional) review by dragos. (The one place I know I could use a look is in Checkers.scala, because I had to relax some checks and add at least one newer opcode.)
* closes #3873.Adriaan Moors2010-09-273-0/+19
| | | | | review by maier as no good deed goes unpunished
* close #3864.Lukas Rytz2010-09-272-0/+79
|
* Test for #3829. No review.Aleksandar Pokopec2010-09-271-0/+42
|
* Fixes #3847. No review.Aleksandar Pokopec2010-09-271-0/+21
|
* Some progress on reviving TreeCheckers, plus a ...Paul Phillips2010-09-242-2/+2
| | | | | | | | Some progress on reviving TreeCheckers, plus a couple bugfixes and better error messages revealed by that progress. Also applied tiny increment in understanding to fixing up TreeDSL some more. The hand of martin guides from above, so no review.
* Fixed ParSeqView, added Patched and Reversed.Aleksandar Pokopec2010-09-242-0/+22
|
* closes #3808.Adriaan Moors2010-09-241-0/+11
| | | | | | | | moved typing indentation to where it belongs, now inliner shuold be able to do its job in implicits as well no review
* closes #3857: retain pre-erasure info in type h...Adriaan Moors2010-09-232-0/+14
| | | | | | | | | closes #3857: retain pre-erasure info in type history after cloning of mixed in members and, specifically for this bug, fields, so that java generic type sigs are more precise. review by DRagos
* closes #3800.Adriaan Moors2010-09-231-0/+6
| | | | | | | | appliedType goes under annotations. removed some dead code in isSubtypeHK0. review by rytz
* Adds a zip for ParIterables + a new Zipped view...Aleksandar Pokopec2010-09-234-0/+25
| | | | | | Adds a zip for ParIterables + a new Zipped view for ParSeqView and ParIterableView + a bench test. No review
* Test case closes #3774, no review.Paul Phillips2010-09-222-0/+10
|
* Added an override to immutable.IndexedSeq#toInd...Paul Phillips2010-09-221-0/+10
| | | | | | Added an override to immutable.IndexedSeq#toIndexedSeq which returns itself. Closes #3732, no review.
* Test case closes #3509, no review.Paul Phillips2010-09-222-0/+10
|
* Test case closes #3498, no review.Paul Phillips2010-09-221-0/+15
|
* Test case submitted by mark harrah closes #2813...Paul Phillips2010-09-221-0/+39
| | | | | Test case submitted by mark harrah closes #2813, no review.
* Test case closes #2619, no review.Paul Phillips2010-09-221-0/+80
|
* Test case closes #1548, no review.Paul Phillips2010-09-223-0/+19
|
* closes #3792: type equality for singleton types...Adriaan Moors2010-09-221-0/+4
| | | | | | | | | closes #3792: type equality for singleton types did not take type aliases into account while chasing the chain of underlying types (if the underlying type is an alias of a singleton type, it should be followed) review by odersky
* Reimplementing parallel views to solve several ...Aleksandar Pokopec2010-09-227-69/+157
| | | | | | Reimplementing parallel views to solve several performance glitches. No review.
* Closes #1591.Hubert Plociniczak2010-09-224-0/+48
|