summaryrefslogtreecommitdiff
path: root/test/files/run
Commit message (Collapse)AuthorAgeFilesLines
* fixes Manifest.Nothing and Manifest.NullEugene Burmako2012-09-068-38/+38
| | | | | | | | | | Also introduces an important change to Manifest.Nothing and Manifest.Null. Previously their `erasure` was equal to classOf[Object]. Now it's correctly set to classOf[scala.runtime.Nothing$] and classOf[scala.runtime.Null$] correspondingly. See a discussion here: https://groups.google.com/forum/#!topic/scala-internals/Y0ALGo7QPqE
* SI-6246 deprecated apis for core class tagsEugene Burmako2012-09-062-0/+116
| | | | | Aliases ClassTag.XXX to Manifest.XXX to reuse already existing implementations of deprecated APIs.
* removes Type.isConcreteEugene Burmako2012-09-066-6/+6
| | | | | | | | | This method was no longer used anywhere, except for a place where it wasn't really necessary. Its implementation is non-trivial, and I have doubts about it, so I propose to remove it altogether instead of living with some dubious code necessary for some dubious matter.
* Merge pull request #1251 from dragos/issue/fix-5064Paul Phillips2012-09-042-0/+48
|\ | | | | Fixed positions in de-aliased special symbols..
| * Fixed positions in de-aliased special symbols and for automatically added ↵Iulian Dragos2012-09-042-0/+48
| | | | | | | | | | `apply` methods. Fixed #5064, thanks to @paulp who showed the right direction (and how to test it).
* | Made Dynamic extend Any.Paul Phillips2012-09-032-0/+26
|/ | | | So it can be used in value classes.
* Merge pull request #1202 from scalamacros/topic/reflectionPaul Phillips2012-09-024-5/+5
|\ | | | | further polishing of reflection
| * definitive way to learn if a symbol is a val/varEugene Burmako2012-08-274-5/+5
| | | | | | | | | | I think `isVal` and `isVar` are the right names, because they exactly map on Scala syntax.
* | Merge pull request #1231 from paulp/issue/6273Josh Suereth2012-09-022-0/+30
|\ \ | | | | | | Fix for SI-6273, repl string interpolation.
| * | Fix for SI-6273, repl string interpolation.Paul Phillips2012-09-012-0/+30
| | | | | | | | | | | | | | | | | | As usual the hard part is tracing through all the needless abstraction. Begone, 25 layers of parsing error issuing methods!
* | | Better errors for Any/AnyRef issues.Paul Phillips2012-09-016-101/+101
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an error occurs because some type does not conform to AnyRef (and an AnyRef-derived type would have sufficed) try to say something useful about the situation. This commit also initializes scope members before printing error messages because the + version seems more useful than the - version (taken from one of the checkfile diffs.) - def <init>: <?> - def methodIntIntInt: <?> + def <init>(): X + def methodIntIntInt(x: scala.Int,y: scala.Int): scala.Int
* | Merge pull request #1201 from axel22/issue/4581Josh Suereth2012-09-011-3/+9
|\ \ | | | | | | Fix SI-4581.
| * | Fix SI-4581.Aleksandar Prokopec2012-08-271-3/+9
| |/ | | | | | | | | | | | | Specifically, the final flag on the generated static field is no longer ommitted. Fix 2 failing test-cases.
* | Merge pull request #1225 from jsuereth/fix/si-6290Josh Suereth2012-09-011-0/+4
|\ \ | | | | | | Fixes SI-6290 by creating real instnaces of language features.
| * | Fixes SI-6290 by creating real instnaces of language features.Josh Suereth2012-08-311-0/+4
| | |
* | | Merge pull request #1213 from paulp/topic/anyvalJosh Suereth2012-08-303-11/+7
|\ \ \ | | | | | | | | Expanded the reach of value classes.
| * | | Expanded the reach of value classes.Paul Phillips2012-08-293-11/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now extending AnyVal: - RichInt, RichDouble, etc. - ArrayOps.ofRef, ofBoolean, etc - StringAdd - StringFormat The rest of it is the changes necessary to enable those.
* | | Merge pull request #1160 from rklaehn/SI-6220Josh Suereth2012-08-301-0/+92
|\ \ \ | | | | | | | | Si 6220
| * | | Added test that should cover all code paths of the changes done in SI-6220Ruediger Klaehn2012-08-181-0/+92
| | | | | | | | | | | | | | | | This test will pass even with an older version of the scala library, since as mentioned this is just a performance improvement.
* | | | Merge pull request #1169 from rklaehn/SI-6261Josh Suereth2012-08-301-0/+130
|\ \ \ \ | | | | | | | | | | Si 6261
| * | | | Added test to ensure that ListMap.tail is O(1)Ruediger Klaehn2012-08-251-0/+7
| | | | |
| * | | | Extended test to also check proper handling of collisionsRuediger Klaehn2012-08-211-0/+91
| | | | |
| * | | | Added test that tests that correct classes are being created when removing ↵Ruediger Klaehn2012-08-211-0/+32
| | | | | | | | | | | | | | | | | | | | elements
* | | | | Fixed cloning a double-linked list.Josh Suereth2012-08-291-0/+18
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Still need to determine if this is a systemic issue and needs to be addressed higher in the linked list hierarchy. For now, just fixing the reported bug, with a note here for other maintainers.
* | | | Merge pull request #1197 from scalamacros/topic/kindEugene Burmako2012-08-292-9/+9
|\ \ \ \ | | | | | | | | | | removes Symbol.kind and Type.kind
| * | | | removes Symbol.kind and Type.kindEugene Burmako2012-08-262-9/+9
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use Universe.showRaw instead: scala> import scala.reflect.runtime.{universe => ru} import scala.reflect.runtime.{universe=>ru} scala> ru.showRaw(typeOf[Int]) res0: String = TypeRef(ThisType(scala), scala.Int, List()) scala> ru.showRaw(typeOf[Int].typeSymbol, printKinds = true) res1: String = scala.Int#CLS
* | | | Merge pull request #1184 from pavelpavlov/partialfunGrzegorz Kossakowski2012-08-292-0/+92
|\ \ \ \ | | | | | | | | | | PartialFunction polishing
| * | | | PartialFunction polishingPavel Pavlov2012-08-232-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - ScalaDocs added - TODOs fixed - controversive method `run` deleted - not used class runtime.AbstractTotalFunction removed - small corrections & fixes - tests for `orElse` & `runWith`
* | | | | Merge pull request #1188 from retronym/ticket/6272Josh Suereth2012-08-282-0/+72
|\ \ \ \ \ | | | | | | | | | | | | SI-6272 Support lazy vals defined in try in template.
| * | | | | SI-6272 Support lazy vals defined in try in template.Jason Zaugg2012-08-242-0/+72
| | | | | |
* | | | | | Merge pull request #1185 from paulp/210-updateConservePaul Phillips2012-08-281-12/+15
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Eliminated a metric ton of allocations.
| * | | | | Eliminated a metric ton of allocations.Paul Phillips2012-08-231-12/+15
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to the hotspot DTrace probes. I'm not sure why this checkfile changed, but hopefully it's innocuous. Review by @VladUreche for the checkfile and @gkossakowski so he can tell me how much faster.
* | | | | SI-6281 macroArgs for defs with implicit argsEugene Burmako2012-08-254-0/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | macroArgs now correctly calculates the argss in case when a macro def has implicit parameters. Macro impls can never have implicit parameters other than type tag evidences, so tags will always come in a separate parameter list w.r.t other parameters of macro impls (which are in 1-to-1 correspondence with the parameters of macro defs). Example 1: def w/o implicits: (params1)...(paramsN) impl w/o tags: (params1')...(paramsN') Example 2: def w/o implicits: (params1)...(paramsN) impl w tags: (params1')...(paramsN')(implicit tags) Example 3: def w implicits: (params1)...(paramsN)(implicit paramsN+1) impl w/o tags: (params1')...(paramsN')(paramsN+1') Note: paramsN+1' is not an implicit parameter list because impls cannot have implicit parameters other than tags Example 4: def w implicits: (params1)...(paramsN)(implicit paramsN+1) impl w tags: (params1')...(paramsN')(paramsN+1')(implicit tags) Therefore we don't need to merge the argss.last (that correspond to implicit parameters of macro defs) with tags, as it was incorrectly coded before. We just need to append tags to argss.
* | | | | SI-6052 - fix groupBy on parallel collectionsAleksandar Prokopec2012-08-241-0/+21
| |/ / / |/| | |
* | | | Merge pull request #1179 from scalamacros/topic/classtag-of-nothingPaul Phillips2012-08-231-30/+30
|\ \ \ \ | |/ / / |/| | | reverts changes to ClassTag.Nothing
| * | | reverts changes to ClassTag.NothingEugene Burmako2012-08-221-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seemed to be a good idea to have ClassTag.Nothing crash in agreement with its incalculable nature. However this breaks CanBuildFrom for the situations when Nothing is inferred or provided explicitly. Hence the rollback.
* | | | Merge pull request #1182 from paulp/issue/1987Josh Suereth2012-08-236-0/+46
|\ \ \ \ | | | | | | | | | | Improved fix for SI-1987, overloading in package objects.
| * | | | Improved fix for SI-1987, overloading in package objects.Paul Phillips2012-08-226-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When reformulating an errant package object overload, don't forget to fully qualify it lest you trade one error for another.
* | | | | Merge pull request #1183 from jsuereth/fix/try-catch-inversionJosh Suereth2012-08-232-0/+2
|\ \ \ \ \ | |/ / / / |/| | | | Fix stupid logic inversion of try-catch
| * | | | Fix stupid logic inversion of try-catchJosh Suereth2012-08-212-0/+2
| | | | |
* | | | | Merge pull request #1167 from Blaisorblade/topic/stream-const-spaceGrzegorz Kossakowski2012-08-221-0/+44
|\ \ \ \ \ | |_|/ / / |/| | | | Make Stream.withFilter.{map,flatMap} run in constant stack space
| * | | | Also check that Stream.toSeq gives the right result.Paolo Giarrusso2012-08-221-1/+3
| | | | |
| * | | | Improve test for Stream.withFilter.{map,flatMap}Paolo Giarrusso2012-08-221-10/+40
| | | | | | | | | | | | | | | | | | | | Test a wider range of functionality.
| * | | | Cleanup testcasePaolo Giarrusso2012-08-202-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | No need to check the output - checking programmatically that the produced streams are empty is enough.
| * | | | Make Stream.withFilter.{map,flatMap} run in constant stack spacePaolo Giarrusso2012-08-202-0/+16
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The included test currently fails because `map` and `flatMap` do not run in constant stack space on a stream returned by `Stream.withFilter`, as I reported here: https://groups.google.com/d/msg/scala-language/WqJR38REXnk/saaSiDdmyqoJ Fix the problem and add a simple testcase. Note that the stack space consumed when producing an element of this stream is proportional to the number of elements failing the test before the next success. The stack space consumed to produce the stream itself is the space needed to produce the first element, that is, is proportional to the number of failures before the first success.
* | | | fixes non-determinism in reflection-sorted-declsEugene Burmako2012-08-214-36/+2
| |/ / |/| | | | | | | | | | | | | | | | | | | | ordering of synthetic members on java7 with a lot of cores is non-deterministic that's not a problem, because the doc doesn't promise anything about synthetics hence I've adjusted the test, so that it no longer includes accessors discussion: http://groups.google.com/group/scala-internals/msg/087a7d4805313561
* | | Adding test for try-catch library unification.Josh Suereth2012-08-202-0/+18
|/ /
* | Merge pull request #1151 from scalamacros/topic/cleanupEugene Burmako2012-08-179-0/+19
|\ \ | | | | | | more cleanup in Macros.scala
| * | more cleanup for typedMacroBodyEugene Burmako2012-08-179-0/+19
| |/
* | Fixes SI-6236.Aleksandar Prokopec2012-08-174-2/+32
| | | | | | | | | | | | | | In separate compilation runs, the static field symbol in the companion class of an object was not being recreated. Given that the singleton object was compiled separately, the static field symbol will be recreated on demand.