summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
*---. Merge commit 'refs/pull/457/head'; commit 'refs/pull/458/head'; commit ↵Paul Phillips2012-05-0219-9/+193
|\ \ \ | | | | | | | | | | | | '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
| | | |
| | * | Pending test for si-4683.Aleksandar Prokopec2012-05-021-0/+11
| | | |
| | * | Test case for si-5198.Aleksandar Prokopec2012-05-021-0/+15
| | | |
| | * | Pending test for si-5240.Aleksandar Prokopec2012-05-021-0/+11
| | | |
| | * | Pending test for si-5514Aleksandar Prokopec2012-05-021-0/+35
| | | |
| | * | Test case for si-5559.Aleksandar Prokopec2012-05-021-0/+23
| | | |
| | * | Test case for si-5606.Aleksandar Prokopec2012-05-021-0/+9
| | | |
| | * | Test case for si-5618.Aleksandar Prokopec2012-05-022-0/+34
| | | |
| * | | 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-0221-64/+144
|\ \ \ \ \ \ \ | | | |_|/ / / | | |/| | / / | | | | |/ / | | | |/| / | |_|_|_|/ |/| | | | '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
| |_|_|/ |/| | |
| | | * Pending test for si-5676.Aleksandar Prokopec2012-05-022-0/+26
| | | |
| | | * Add pending test for si-5698.Aleksandar Prokopec2012-05-023-0/+36
| | | |
| | | * Add pending test for SI-5018.Aleksandar Prokopec2012-05-021-0/+34
| |_|/ |/| |
| | * 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
* 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-3057-79/+417
|\|
| * 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-2617-26/+209
| |\ \
| | | * SI-5702 Pattern parser halts on starSom Snytt2012-04-2616-26/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | A brand new, fast classfile parser.Paul Phillips2012-04-264-0/+116
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Try it: ./tools/dump-class ./build/quick/classes The output is intended to be easy to filter on the command line. This is a starting point for lots of interesting bytecode analysis for which we have waited too long. Example. All generic signatures we produce. // almost 20K classfiles % find build/quick/classes -name '*.class' |wc -l 18519 // fully parsed in 6 seconds tools/dump-class build/quick/classes |grep "^ signature" | wc -l 50802 real 0m6.230s It's designed to be easy to make faster if you don't care about particular classfile bits; you can override those methods to jump forward in the input stream rather than building a structure. For just a little sampling, here are our most frequently repeated name/signature combinations. 194 signature <init> ()V // this one is weird, wonder why there's a generic signature 115 signature $div$colon$bslash <A1:Ljava/lang/Object;>(TA1;Lscala/Function2<TA1;TA1;TA1;>;)TA1; 105 signature applyOrElse <A1:Ljava/lang/Object;B1:Ljava/lang/Object;>(TA1;Lscala/Function1<TA1;TB1;>;)TB1; 103 signature view ()Ljava/lang/Object; 101 signature toSet <B:Ljava/lang/Object;>()Lscala/collection/immutable/Set<TB;>; And the top five name/descriptor combinations. 11170 descriptor <clinit> ()V 10155 descriptor serialVersionUID J 7130 descriptor apply (Ljava/lang/Object;)Ljava/lang/Object; 3028 descriptor apply ()Ljava/lang/Object; 2426 descriptor <init> ()V
* | | Add promises tests.Aleksandar Prokopec2012-04-302-0/+227
| | |
* | | Fixed a bug with setting execution contexts.Aleksandar Prokopec2012-04-301-2/+138
| | | | | | | | | | | | Ported most of the future tests.
* | | Porting akka future tests.Aleksandar Prokopec2012-04-272-0/+471
|/ / | | | | | | Fixed a bug in Future.zip.
* | Trying to set an example in the land of macros.Paul Phillips2012-04-252-6/+6
| | | | | | | | | | | | | | | | Hopefully there are useful examples to be had in here. Please note that you should never be testing "x.size != 0", use isEmpty or nonEmpty. Even if these happen to be small collections, it's not a habit you want to form: size is O(n) on a number of collections. (Most pointedly, Lists.)
| |
| \
| \
| \
*---. \ Merge commit 'refs/pull/439/head'; commit 'refs/pull/440/head'; commit ↵Paul Phillips2012-04-2532-68/+72
|\ \ \ \ | | | | | | | | | | | | | | | 'refs/pull/441/head' into develop
| | | * | diagnostics for SI-5692Eugene Burmako2012-04-253-0/+14
| | |/ /
| * / / removes Expr <-> Tree implicitsEugene Burmako2012-04-2529-68/+58
| |/ /
| | |
| \ \
*-. \ \ Merge commit 'refs/pull/437/head'; commit 'refs/pull/438/head' into developPaul Phillips2012-04-256-5/+80
|\ \ \ \ | |_|/ / |/| | |
| | * | updated tests now matches aren't translated if forInteractiveAdriaan Moors2012-04-252-5/+2
| | | |
| * | | Added a Presentation Compiler test for hyperlinking.Iulian Dragos2012-04-254-0/+78
| | | | | | | | | | | | | | | | | | | | | | | | This test ensures hyperlinking works inside and around pattern matching. The new virtual pattern matcher synthesizes trees that are not properly nested, and whose positions make it impossible to retrieve the correct tree/symbol for a given position. Therefore, the current test is using the old pattern matcher. However, once the virtual pattern matcher is fixed, remove the corresponding line from patmat.flags to re-enable virtpatmat.
* | | | Merge commit 'refs/pull/436/head'Paul Phillips2012-04-252-0/+11
|\ \ \ \ | |_|/ / |/| | |