summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* A whole bunch of checkfile updates.Paul Phillips2012-05-107-45/+45
| | | | | Wasn't me this time (I don't think!) Mr. Robot can't get here too soon for me.
* Checkfile update.Paul Phillips2012-05-101-44/+44
| | | | Wonder if we should have a special area for high-turnover checkfiles.
* Merge commit 'refs/pull/526/head' into developPaul Phillips2012-05-105-92/+65
|\
| * Fixed SI-5708. Correctly compute accessibility for object members.Iulian Dragos2012-05-105-92/+65
| |
* | Test cases.Paul Phillips2012-05-1010-0/+103
| | | | | | | | | | | | Closes SI-4482, SI-4651, SI-3702. Pending tests for SI-1832, SI-3439, SI-5091, SI-5231, SI-5265.
* | More useful crash reports.Paul Phillips2012-05-101-5/+5
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you can't get your hands on something which crashes scalac - I know, I know - you can try this ready-made crasher. % cat test/pending/pos/t4717.scala trait Bounds[@specialized A] { // okay without `>: A` def x[B >: A]: Unit = new Bounds[B] { lazy val it = ??? // def or val okay it } } % scalac -d /tmp test/pending/pos/t4717.scala error: while compiling: test/pending/pos/t4717.scala during phase: specialize library version: version 2.10.0-20120510-134429-ce1d68ed19 compiler version: version 2.10.0-20120510-152646-ba4dfd1e63 reconstructed args: -d /tmp last tree to typer: Select(This(trait Bounds$mcZ$sp), x$mcZ$sp) symbol: method x$mcZ$sp in trait Bounds$mcZ$sp (flags: override <method> <specialized>) symbol definition: override def x$mcZ$sp[B >: Boolean](): Unit tpe: [B >: Boolean]()Unit symbol owners: method x$mcZ$sp -> trait Bounds$mcZ$sp -> package <empty> context owners: value it -> anonymous class $anon -> method x$mcZ$sp -> trait Bounds$mcZ$sp -> package <empty> == Enclosing template or block == Block( Assign( $anon.this."it " Apply( // def ???(): Nothing in object Predef, tree.tpe=Nothing scala.this."Predef"."$qmark$qmark$qmark" // def ???(): Nothing in object Predef, tree.tpe=()Nothing Nil ) ) $anon.this."it " // lazy private[this] var it: Nothing, tree.tpe=Nothing ) == Expanded type of tree == PolyType( typeParams = List(TypeParam(B >: Boolean)) resultType = NullaryMethodType( resultType = TypeRef(TypeSymbol(final class Unit extends AnyVal)) ) ) // And then the usual stack trace
* Merge commit 'refs/pull/521/head' into developPaul Phillips2012-05-101-0/+13
|\
| * Fixes SI-5640Dominik Gruntz2012-05-101-0/+8
| |
| |
| \
*-. \ Merge commit 'refs/pull/522/head'; commit 'refs/pull/523/head' into developPaul Phillips2012-05-102-0/+5
|\ \ \
| | * | A bunch of fixes for positions when dealing with partial functionsHubert Plociniczak2012-05-102-0/+5
| | | |
* | | | Revert "Fix for ## inconsistency."Paul Phillips2012-05-101-5/+0
| |_|/ |/| | | | | | | | | | | | | | This reverts commit 58bb2d1bd2000ac3aa2c64b6c5dc56c91e911860. I guess this must be what's failing the nightly.
* | | Another test for SI-2296.Paul Phillips2012-05-097-0/+98
| | |
* | | Custom hashCode methods for case classes.Paul Phillips2012-05-093-44/+90
| | | | | | | | | | | | No boxing, no MODULE$ indirection.
* | | Fix an inference regression with this.type.Paul Phillips2012-05-092-0/+26
| | | | | | | | | | | | Closes SI-5210.
* | | Revert recent commits.Paul Phillips2012-05-092-13/+5
| | | | | | | | | | | | | | | This reverts commit 9b6f51d3ae6ddc6571d3101ea715e25a05aa8adb. This reverts commit b5919100e785df58bde35bb24abe9d60b4da08a2.
* | | Checkfile update.Paul Phillips2012-05-091-58/+58
| | |
* | | Restored portion of code removed in a7f68ce32c .Paul Phillips2012-05-091-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A hole in the net discovered by retronym makes me put back the former special casing of module class type inference; there's no reason to get it wrong. It appears that TypeRef(pre1, sym1, Nil) SingleType(pre2, sym2) are not seen as equivalent if they have different prefixes even if the prefixes should be equivalent. For now I'm leaving it; in principle this patch should eventually be reverted after subtyping and/or the representation of singleton types advances to the point that it isn't necessary. Closes SI-5777.
| | |
| \ \
| \ \
| \ \
*---. \ \ Merge commit 'refs/pull/517/head'; commit 'refs/pull/518/head'; commit ↵Paul Phillips2012-05-098-5/+47
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 'refs/pull/519/head'; commit 'refs/pull/520/head' into develop
| | | * | | removes redundant hash implementation from BoxesRunTime.javaDominik Gruntz2012-05-092-5/+13
| | | |/ /
| | | * | Fix for ## inconsistency.Paul Phillips2012-05-081-0/+5
| | | | | | | | | | | | | | | | | | | | Hopefully without slowing things down overmuch. Closes SI-5640.
| | | * | Merge commit 'refs/pull/515/head'; commit 'refs/pull/516/head' into developPaul Phillips2012-05-082-0/+12
| | | |\ \
| | | | * | fix SI-1247: don't create a thunk for a by-name argument if the argument ↵Johannes Rudolph2012-05-082-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | expression is a Function0 application
| | | * | | Added tests for SI-4190.Josh Suereth2012-05-082-0/+9
| | | |/ /
| * | / / Fixes SI-5328. Iterator.patched failed when from=0.Josh Suereth2012-05-082-0/+8
| | |/ / | |/| | | | | | | | | | | | | | | | | | It turns out iterator.patched forgot to drop replacement values if they were at the beginning. This is because the index was advancing before checking to see if replaced elements should be dropped. Moved this behavior to the beginning of next.
* | | | Added an additional test case rather than leaving it in my REPL.Josh Suereth2012-05-081-1/+4
| | | |
* | | | Fixes SI-5201. Adds flatten to TraversableViewLike.Josh Suereth2012-05-082-0/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | Note: This commit exposes a pretty rich type on flatten in views. HOWEVER, because we don't capture the higher kinded type of the underlying collection, it makes returning a more minimal type pretty dang hard. I can imagine a very breaking and painful change of capturing the underling collection as a higher-kinded type as well as the current view type in a *ViewLike.scala. I hope this kind of issue, along with others, drives a rethink of our view API design.
| | |
| \ \
*-. \ \ Merge commit 'refs/pull/512/head'; commit 'refs/pull/513/head' into developPaul Phillips2012-05-087-1/+40
|\ \ \ \ | |_|_|/ |/| | |
| | * | Fixes SI-5564.Aleksandar Prokopec2012-05-082-0/+4
| | | | | | | | | | | | | | | | Catching typer errors in specialization.
| | * | Add test-case for SI-5564.Aleksandar Prokopec2012-05-081-0/+9
| | |/
| * / Fixed positions in named default applications (no hyperlinking in ↵Iulian Dragos2012-05-085-1/+27
| |/ | | | | | | | | | | conjunction with implicit arguments). Removed even more code in the presentation compiler testing infrastructure. One less level of indirection, and a top-level object gone!
| |
| \
*-. \ Merge commit 'refs/pull/510/head'; commit 'refs/pull/511/head'Paul Phillips2012-05-083-61/+84
|\ \ \
| | * | Test case for SI-5378phaller2012-05-081-0/+19
| | |/
| * | Appendix. Typo that wasn't covered by the test suite.Hubert Plociniczak2012-05-082-61/+65
| | |
| | |
| \ \
| \ \
| \ \
| \ \
| \ \
*-----. \ \ Merge commit 'refs/pull/504/head'; commit 'refs/pull/505/head'; commit ↵Paul Phillips2012-05-08198-590/+3762
|\ \ \ \ \ \ | | | |_|/ / | | |/| | / | | | | |/ 'refs/pull/506/head'; commit 'refs/pull/507/head'; commit 'refs/pull/508/head' into develop
| | | * / Changes scala.math.signum to return negative zeros.Dominik Gruntz2012-05-081-0/+6
| | | |/
| | * | Part II of the Lazy Vals Saga: Saving bitmap by the Three Musketeers: Byte, ↵Hubert Plociniczak2012-05-041-1/+1
| | | | | | | | | | | | | | | | Int and Long. And Boolean (hey, he also deserves some credit!).
| | * | Part I of the Lazy Vals Saga: Bitmaps are no longer inherited.Hubert Plociniczak2012-05-031-2/+1
| |/ / |/| |
| * | Add test for t5564 in pending/posphaller2012-05-081-0/+5
| |/
| * Fix for aliasing bug in reifier.Paul Phillips2012-05-081-0/+8
| | | | | | | | Closes SI-5769.
| * Test case closes SI-3798.Paul Phillips2012-05-072-0/+11
| |
| *-----------------. Merge remote-tracking branches 'scalamacros/ticket/5722', ↵Paul Phillips2012-05-0716-0/+158
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'scalamacros/ticket/5726', 'scalamacros/ticket/5610', 'scalamacros/ticket/5654', 'scalamacros/ticket/5521', 'scalamacros/ticket/5585', 'scalamacros/ticket/5503', 'scalamacros/ticket/4728', 'scalamacros/ticket/5534' and 'scalamacros/ticket/4560'
| | | | | | | | | | | * test for SI-4560Eugene Burmako2012-05-081-0/+9
| | | | | | | | | | | |
| | | | | | | | | | * | test for SI-5534Eugene Burmako2012-05-081-0/+11
| | | | | | | | | | |/
| | | | | | | | | * / test for SI-4728Eugene Burmako2012-05-082-0/+13
| | | | | | | | | |/
| | | | | | | | * / test for SI-5503Eugene Burmako2012-05-082-0/+19
| | | | | | | | |/
| | | | | | | * / test for SI-5585Eugene Burmako2012-05-081-0/+18
| | | | | | | |/
| | | | | | * / test for SI-5521Eugene Burmako2012-05-081-0/+3
| | | | | | |/
| | | | | * / test for SI-5654Eugene Burmako2012-05-081-0/+4
| | | | | |/
| | | | * / test for SI-5610Eugene Burmako2012-05-084-0/+42
| | | | |/
| | | * / tests for SI-5726Eugene Burmako2012-05-072-0/+33
| | | |/