summaryrefslogtreecommitdiff
path: root/test/files
Commit message (Collapse)AuthorAgeFilesLines
* Fix for si-5590.Aleksandar Prokopec2012-05-042-0/+35
|
* Test case for SI-5106.Paul Phillips2012-05-032-0/+16
|
* Fix for implicit class / value class collision.Paul Phillips2012-05-031-0/+6
| | | | | | | | | | | | | | New this week, on SCALA. Implicit class: "Spin me up an implicit method with my name." Value class: "I need a companion object, pronto." Narrator: "All was well with this arrangement... UNTIL." What happens when these two wacky SIPs get together in the very same class? You'll laugh until, eventually, you cry! Weeknights at 9:30pm, only on SCALA. Closes SI-5667.
* Clarified the status of SI-13.Paul Phillips2012-05-031-31/+30
| | | | Through the oracle of pos/t1279a.scala.
* Fix for Dynamic interaction with private methods.Paul Phillips2012-05-032-0/+12
| | | | | | Don't let inaccessible methods prevent calls to *Dynamic, otherwise we are at the mercy of every "private" alteration in every class we inherit. Closes SI-5040.
* Moved passing tests from pending to files.Paul Phillips2012-05-0318-0/+390
| | | | | | | | Most are pattern matcher bugs fixed by virtpatmat. A few are reifier, package object, or miscellaneous. I threw in an original test for SI-2337, to go with those for SI-1697, SI-3705, SI-4415, and SI-1357, all of which (in the interests of making sure this basket has all the eggs) I am closing.
* Fix for SI-3718.Paul Phillips2012-05-032-0/+7
| | | | | | | And for a bunch of other tickets where we unleash a stack trace rather than printing a sensible error message. But SI-3718 is a continuations plugin crash, now a reasonable if somewhat vague error.
* Test cases for SI-5472, SI-5399, SI-5685.Paul Phillips2012-05-032-0/+91
|
* Fix for SI-5608, crasher with value classes.Paul Phillips2012-05-032-0/+13
| | | | | | Anyone who doubts the importance of avoiding duplication is invited to look closely at the cause of this bug as revealed in this one line patch.
* Test case closes SI-5655.Paul Phillips2012-05-032-0/+40
| | | | | Still some issues with the repl namespace, which should be managed in a first class way, not defensively/reactively.
* Hardening implicit classes.Paul Phillips2012-05-032-0/+11
| | | | Closes SI-5728.
* Moved a warning behind -Xlint.Paul Phillips2012-05-031-1/+1
| | | | | | Eventually "-Xlint would have told you not to do that" will be a catchphrase, like "I love it when a plan comes together" or "respect mah authoritah."
*---. Merge commit 'refs/pull/467/head'; commit 'refs/pull/468/head'; commit ↵Paul Phillips2012-05-0339-96/+339
|\ \ \ | | | | | | | | | | | | 'refs/pull/469/head'; commit 'refs/pull/470/head' into develop
| | * | SI-5703: normalize refined types moreAdriaan Moors2012-05-036-23/+53
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | to improve Array[T] java-interop with T[], normalize Object with Object{} to Object fix #SI-5688 by flattening refined types in parents updated check files to reflect flattening of refined types and updated position for refined types
| | * Merge branch 'may2' of /scala/trunk into developPaul Phillips2012-05-022-0/+52
| | |\
| | | * Unanchored regex extractors.Paul Phillips2012-05-022-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is really by Lanny Ripple <lanny@spotinfluence.com>, but I reworked it because I didn't want to put any more methods onto String. Instead, there is a method on Regex which removes the anchoring quality. """\d\d'"".r.unanchored
| | * | Merge commit 'refs/pull/317/head' into developPaul Phillips2012-05-022-0/+29
| | |\ \ | | | |/ | | |/|
| | | * SI-5543: Ctor default arg wrongly scoped (revised)Som Snytt2012-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the motivating bug by detecting when a method is the default arg getter for a constructor parameter. That requires fixing a secondary bug where an arbitrary string was used to encode <init> in lieu of <init>.encode. There is no speculative mangling.
| | | * SI-5543: Merge with trunkSom Snytt2012-04-261197-3429/+14343
| | | |\ | | | | | | | | | | | | | | | | | | | | Reverts name unenmanglement that was objectionable in the previous patch commit 47bfd744177121de08fed489a5b0b1b59a1ae06a.
| | | * | Ctor default-getters unique name and are typed in constructor contextSom Snytt2012-03-232-0/+29
| | | | |
| | | | |
| | | \ \
| | | \ \
| | | \ \
| | *---. \ \ Merge commit 'refs/pull/457/head'; commit 'refs/pull/458/head'; commit ↵Paul Phillips2012-05-0212-9/+70
| | |\ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | 'refs/pull/459/head'; commit 'refs/pull/460/head'; commit 'refs/pull/461/head'; commit 'refs/pull/462/head'; commit 'refs/pull/463/head'; commit 'refs/pull/464/head'; commit 'refs/pull/465/head' into develop
| | | | * | | Test cases for si-4536.Aleksandar Prokopec2012-05-022-0/+54
| | | | | | |
| | | | * | | Test case for si-5198.Aleksandar Prokopec2012-05-021-0/+15
| |_|_|/ / / |/| | | | |
| | | * | | remove -Xoldpatmat where test no longer needs itAdriaan Moors2012-05-029-9/+1
| | | | | |
| | | | | |
| | | \ \ \
| | *-. \ \ \ Merge commit 'refs/pull/457/head'; commit 'refs/pull/458/head'; commit ↵Paul Phillips2012-05-0215-64/+48
| |/|\ \ \ \ \ |/| | | |/ / / | | | |/| | | | | | | | | | 'refs/pull/459/head'; commit 'refs/pull/460/head'; commit 'refs/pull/461/head'; commit 'refs/pull/462/head' into develop
| | | | * | | fix SI-5682Lukas Rytz2012-05-021-1/+3
| |_|_|/ / / |/| | | | |
| | | * | | SI-5542 closed by test caseAdriaan Moors2012-05-022-0/+4
| | | | | |
| | | * | | moving patmat to its own phaseAdriaan Moors2012-05-0211-63/+35
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sort field accessors, necessary after typers -- apparently... don't throw TypeError, use issueTypeError don't run patmat phase when -Xoldpatmat only virtualize matches when -Xexperimental recycle cps type of match for re-typechecking: when one of the internal cps-type-state annotations is present, strip all CPS annotations a cps-type-state-annotated type makes no sense as an expected type (matchX.tpe is used as pt in translateMatch) don't synth FunctionN impls during typer, only do this for PartialFunction updated check now function synth for match is deferred until uncurry patmat-transform try/catch with match in cps cleanup in selective anf remove TODO: can there be cases that are not CaseDefs -- nope
| | * | | SI-5729: TypeVar experimentals iff -XexperimentalAdriaan Moors2012-05-021-0/+6
| |/ / / |/| | | | | | | | | | | | | | | | | | | it used to also be enabled by -Yvirtpatmat, which is now on by default, but this type hackery is no longer necessary to bootstrap under the new pattern matching scheme, so let's only turn it on when people are feeling -Xexperimental
| * | | SI-5720: Qual block doesn't update sym ownerSom Snytt2012-05-022-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | A one-line change to blockWithQualifier. The symptom is undefined tmp var symbols in the backend; lamba lift thinks the tmp var is free and adds it to anonfun ctors.
* | | | Fixs for reflection and getSimpleName.Paul Phillips2012-05-022-0/+56
|/ / / | | | | | | | | | | | | Since getSimpleName will be crashing us indefinitely, took the expedient route and wrapped the call.
* | | Hackaround for people who like to instantiate the uninstantiable.Paul Phillips2012-05-011-1/+28
| | | | | | | | | | | | | | | | | | Closes SI-5666 again. (I don't have the least clue how I'm supposed to issue the error.)
* | | Fixes #SI-5578.Paul Phillips2012-05-012-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | ResetAttrs shouldn't be side-effecting on the original tree, since it can lead to NPEs in erroneous trees (or maybe even for valid ones?). Review by @odersky (Patch by plocinic, applied without his complicity by extempore)
* | | Widen types in signatures of Future companion methods, refactor ↵Aleksandar Prokopec2012-05-012-238/+267
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OnceCanBuildFrom. Removed the implicit modifier on the OnceCanBuildFrom, as we don't support implicit classes with zero arguments. Added an implicit OnceCanBuildFrom method. The idea behind OnceCanBuildFrom is for it to be used by methods which construct collections, but are defined outside of collection classes. OnceCanBuildFrom so far worked only for objects of type TraversableOnce: shuffle(List(1, 2, 3).iterator: TraversableOnce[Int]) but this used to result in an implicit resolution error: shuffle(List(1, 2, 3).iterator) because after the type parameter M for `shuffle` was inferred to Iterator, no implicit of type CanBuildFrom[Iterator[_], A, Iterator[A]] could be found. Introduced another CanBuildFrom to the Iterator companion object. Modified Future tests appropriately.
* | | Merge branch 'master' into feature/future-compatAleksandar Prokopec2012-05-0111-419/+685
|\ \ \
| * \ \ Merge branch 'apr30-checkin' of /scala/trunk into developPaul Phillips2012-04-302-4/+4
| |\ \ \
| | * | | Optimization of Predef implicits.Paul Phillips2012-04-302-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All those wildcards in a default-scoped implicit are expensive, they each lead to a typevar on every search. Restructured the Tuple2/Tuple3 Zipped classes, they're better this way anyway. This also gets all that Tuple[23] code out of genprod.
| * | | | Presentation Compiler tests for visibility of members.Iulian Dragos2012-04-309-415/+681
| |/ / / | | | | | | | | | | | | Removed some unneeded indirection in the testing framework.
* | | | Merge branch 'master' into feature/future-compatAleksandar Prokopec2012-04-3056-72/+420
|\| | |
| * | | Removed a few more @deprecated members.Paul Phillips2012-04-2827-43/+42
| | | | | | | | | | | | | | | | | | | | The ones which remain I'm not removing on purpose, as I know from experience it's more trouble than it's yet worth.
| * | | Another tedious day at Checkfile Ranch.v2.10.0-M3Paul Phillips2012-04-271-1/+1
| | | |
| * | | Merge commit '2bd62d2cfff47882eb72768cfb054638ed0f039b'Paul Phillips2012-04-272-2/+8
| |\ \ \
| | * | | fixes broken eval testsEugene Burmako2012-04-272-2/+8
| | | | |
| * | | | Revert "Moved ancillary methods off specialized traits."Paul Phillips2012-04-273-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1d0372f84f9a7325a47beb55169cc454895ef74b. I forgot about polymorphic dispatch. Have to seek another way.
| | | | |
| | \ \ \
| *-. | | | Merge commit 'refs/pull/445/head'; commit 'refs/pull/446/head'; commit ↵Paul Phillips2012-04-274-0/+34
| |\ \| | | | | | | | | | | | | | | | | | | | | 'refs/pull/447/head' into develop
| | | * | | fixes SI-5713Eugene Burmako2012-04-274-0/+34
| | |/ / /
| * / / / Maybe this will fix the test on windows.Paul Phillips2012-04-271-1/+1
| |/ / /
| | | |
| | \ \
| *-. \ \ Merge commit 'refs/pull/443/head'; commit 'refs/pull/444/head' into developPaul Phillips2012-04-2616-19/+212
| |\ \ \ \ | | |_|_|/ | |/| | |
| | | * | SI-5702 Pattern parser halts on starSom Snytt2012-04-2615-19/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In patterns, the parser halts when it sees stars. This means it does not handle infix notation for a case class named "*". This patch uses lookahead to decide whether to parse '_' '*' as a sequence pattern or as the start of infix. (For both normal and error cases, the tokens are always consumed immediately.) Error messages are improved for _* (as a help to learners) and slightly improved recovery helps the parse continue. The entry point for XML patterns is now distinct; otherwise, the change is local to pattern3-simplepattern; the entry point for simplepattern() is unchanged because it is commented "hook for IDE."
| | * | | SI-5690: no-selector match in function yields functionAdriaan Moors2012-04-261-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the implicit beta-reduction performed by typedFunction on a Function(.., Match(EmptyTree, ...)) must of course only be done when the selector actually is empty... (yes, typedMatchAnonFun needs to be cleaned up, I know)