summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Debugging output tweaks.Paul Phillips2012-05-141-1/+1
| | | | And undeprecated Positional.
*-----. Merge commit 'refs/pull/547/head'; commit 'refs/pull/548/head'; commit ↵Paul Phillips2012-05-148-25/+54
|\ \ \ \ | | | | | | | | | | | | | | | 'refs/pull/549/head'; commit 'refs/pull/550/head'; commit 'refs/pull/551/head' into develop
| | | | * Better fix for SI-5676. Review by @paulpHubert Plociniczak2012-05-144-25/+27
| | | | |
| | | * | Closes SI-5796.Hubert Plociniczak2012-05-141-0/+8
| | | |/
| | * | fix SI-5384Lukas Rytz2012-05-141-0/+7
| | | | | | | | | | | | | | | | make TreeInfo recognize constructor calls after named arguments transformation.
| * | | Added test case for commit f7d5f45 (re SI-5552)Erik Osheim2012-05-142-0/+12
|/ / /
| | |
| \ \
*-. \ \ Merge commit 'refs/pull/543/head'; commit 'refs/pull/544/head'; commit ↵Paul Phillips2012-05-1318-7/+163
|\ \ \ \ | | | | | | | | | | | | | | | 'refs/pull/546/head' into develop
| | * | | Test case closes SI-5137.Jason Zaugg2012-05-131-0/+17
| |/ / / | | | | | | | | | | | | virtpatmat strikes again.
| * | | Merge branch 'master' of https://github.com/scala/scalaPaul Phillips2012-05-124-2/+22
| |\| |
| | * | Test case closes SI-5037.Paul Phillips2012-05-122-0/+20
| | | |
| | * | Clutch modification to tree printing.Paul Phillips2012-05-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't print trees under -Xprint:all if they're identical to the tree printed at the previous phase. It only works for a single compilation unit but that is a huge step forward for us debuggers. For instance this file: trait Foo { def f = 5 } used to produce 332 lines of output and now produces 92, with zero loss of information. It ends with: [[syntax trees at end of cleanup]] // a.scala: tree is unchanged since mixin [[syntax trees at end of icode]] // a.scala: tree is unchanged since mixin [[syntax trees at end of inliner]] // a.scala: tree is unchanged since mixin [[syntax trees at end of inlineExceptionHandlers]] // a.scala: tree is unchanged since mixin [[syntax trees at end of closelim]] // a.scala: tree is unchanged since mixin [[syntax trees at end of dce]] // a.scala: tree is unchanged since mixin [[syntax trees at end of jvm]] // a.scala: tree is unchanged since mixin
| | | |
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| | \ \
| *-------------. \ \ Merge remote-tracking branches 'retronym/ticket/5407', ↵Paul Phillips2012-05-1213-5/+124
| |\ \ \ \ \ \ \ \ \ \ | | |_|_|_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | 'scalamacros/topic/macrocherrypick', 'lrytz/t5626', 'lrytz/t5009', 'retronym/ticket/5029', 'retronym/ticket/4025', 'retronym/topic/quieter-nsdhnao' and 'retronym/ticket/1133' into develop
| | | | | | | | | * | Confirm extractor based pattern matches don't explode exponentially.Jason Zaugg2012-05-121-0/+32
| | | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes SI-1133, thanks virtpatmat.
| | | | | | | * / / A REPL pattern matching crasher that crashes no more.Jason Zaugg2012-05-122-0/+31
| | | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not due to virtpatmat, mind you; it passes with -Xoldpatmat. Closes SI-4025.
| | | | | | * / / Another bug bites virtpatmat's dust.Jason Zaugg2012-05-122-0/+4
| | | | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Test case closes SI-5029.
| | | | | * | | Fix SI-5009: case-class copy method now eta-expands over higher parameter lists.Lukas Rytz2012-05-115-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example: Given case class C(a: Int)(b: Int) if you call (new C(1)(2)).copy(a = 10)), you get a function (f: Int => C) such that (f.apply(20)) yields a (new C(10)(20)).
| | | | * | | | Fix SI-5626.Lukas Rytz2012-05-111-0/+12
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | By not replacing 'CaseClass.apply()' factor by 'new CaseClass()' when the class type 'CaseClass' is not accessible.
| | * | | / / Test case closes SI-5407Jason Zaugg2012-05-122-0/+19
| | | |_|/ / | | |/| | | | | | | | | | | | | | | It still breaks as described in the ticket under -Xoldpatmat.
* | / | | | Test for SI-5394.Simon Ochsenreither2012-05-121-0/+4
|/ / / / /
| | | | |
| \ \ \ \
| \ \ \ \
| \ \ \ \
| \ \ \ \
| \ \ \ \
*-----. \ \ \ \ Merge commit 'refs/pull/530/head'; commit 'refs/pull/531/head'; commit ↵Paul Phillips2012-05-1144-252/+445
|\ \ \ \ \ \ \ \ | | | |_|_|_|/ / | | |/| | | | | | | | | | | | | 'refs/pull/532/head'; commit 'refs/pull/533/head'; commit 'refs/pull/534/head' into develop
| | | | * | | | Test case closes SI-4124.Jason Zaugg2012-05-122-0/+28
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | This looks like a job for... virtpatmat!
| | | | * | | Test case closes SI-5165.Paul Phillips2012-05-113-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fixed by annotation/enum commit.
| | | | * | | Recognize java enums as constants from source.Paul Phillips2012-05-113-0/+16
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed up one of the mismatches between how java source is modeled and how java bytecode is modeled. We should get the rest of them too. Closes SI-2764.
| | | * | | fixes a problem with an extractor object overloaded by a regular defEugene Burmako2012-05-111-0/+32
| | |/ / /
| | | | |
| | | \ \
| | | \ \
| | | \ \
| | *---. \ \ Merge commit 'refs/pull/527/head'; commit 'refs/pull/528/head'; commit ↵Paul Phillips2012-05-114-0/+75
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'refs/pull/529/head' into develop
| | | | | * | | Fix for SI-5654.Lukas Rytz2012-05-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More details as code comment and in the bug database.
| | | | * | | | Test case closes SI-2435.Jason Zaugg2012-05-111-0/+27
| | | | | | | |
| | | * | | | | Forbid forward refs from self constructor invocations.Jason Zaugg2012-05-112-0/+35
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents the wheels falling off during later compiler phases, or, worse, during bytecode verification. Closes SI-4098.
| | * / / / / Removing redunant/passing tests from pending.Paul Phillips2012-05-107-66/+15
| | |/ / / /
| | * | | | 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
* | / / / / fix test so that new patmat is testedAdriaan Moors2012-05-102-2/+1
| |/ / / / |/| | | |
* | | | | 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.