summaryrefslogtreecommitdiff
path: root/test/files
Commit message (Collapse)AuthorAgeFilesLines
* Test case closes SI-4758.Paul Phillips2011-12-021-0/+17
|
* Test case closes SI-5084.Paul Phillips2011-12-021-0/+5
|
*-----. Merge remote-tracking branches 'dcsobral/parser/NoSuccessMessages', ↵Paul Phillips2011-12-028-0/+223
|\ \ \ \ | | | | | | | | | | | | | | | 'dcsobral/parserFilter', 'soc/library-range-sum', 'szeiger/feature/enumeration-valueset', 'szeiger/issue/5117' and 'jsuereth/pull-binary-error-message' into develop
| | | * | Make Enumeration.ValueSet SerializableStefan Zeiger2011-12-021-0/+24
| | | | | | | | | | | | | | | | | | | | Closes SI-5117.
| | | * | Enumeration and Enumeration.ValueSet improvementsStefan Zeiger2011-12-022-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Make Enumeration.ValueSet a SortedSet and back it by a BitSet - Add toBitMask and fromBitMask methods for value sets - Add an Ordering for the values - Deprecate names seq in the Enumeration constructor - Add + method to Value for easy ValueSet creation
| | * | | Makes Range#sum an O(1) operation instead of an O(n) one.Simon Ochsenreither2011-12-022-0/+121
| | |/ / | | | | | | | | | | | | Partially fixes SI-4658. NumericRange stays slow, thanks to the brilliant idea that Numeric doesn't need a division operation.
| * | / Add filter/withFilter method to ParserDaniel Capo Sobral2011-12-024-0/+37
| | |/ | |/| | | | | | | | | | | | | | | | Complement map and flatMap when used in for comprehensions. This is required when pattern matching is used on the result of the generators. It is implemented through a new filterWithError method on ParseResult.
* / | Add withErrorMessage/withFailureMessage to Parser.Daniel C. Sobral2011-12-022-0/+39
|/ / | | | | | | Can be used to reliably override the default no success messages.
* / Tests for SI-3481.Simon Ochsenreither2011-12-022-0/+57
|/ | | | Closes SI-3481.
* Re-enable RedBlack's ScalaCheck test, which was disabled at r21829.Daniel C. Sobral2011-12-011-0/+213
| | | | | | | | | | I haven't been able to find any reason for that reversal, but this version is an improved version provided with SI-3796, which never got committed along with the patch. This version generates trees directly instead of using the methods under test. It also puts an upper bound on tree size and, therefore, execution time.
* Improved BitSet implementationsStefan Zeiger2011-12-012-0/+131
| | | | | | | | | | | | | | - Mutable and immutable BitSets now extend SortedSet, using a fixed Ordering.Int and an efficient bit mask based rangeImpl() - fromArray methods in both implementations are deprecated in favor of new fromBitMask and fromBitMaskNoCopy methods - New toBitMask method for converting bit sets back to Array[Long] bit masks - immutable.BitSet uses a more efficient Builder, based on mutable.BitSet (closes SI-4647) - Delete scala.tools.nsc.util.BitSet (not used anywhere) Review by @odersky
* Fix for octal test.Paul Phillips2011-11-291-1/+4
| | | | | | At the last minute I made -Xfuture leading-0 an error and failed to update the checkfile.
* improve cps handling of if-then-else. no review.Tiark Rompf2011-11-294-0/+69
|
* Fixed -Xfuture 5.ds, deprecated 0-octal.Paul Phillips2011-11-298-22/+35
| | | | | | | | I messed up my trip to the future the first time around; now in the future 5.f is not an error but an attempt to call method "f" on 5 like nature intended. (Thank you simon for catching this.) And deprecated leading 0 for octal. Closes SI-5205.
* Moved the test for SI-5230 from files to pendingEugene Burmako2011-11-292-20/+0
|
* Added the check against UnitClass in freeLocals...Eugene Burmako2011-11-291-0/+3
| | | | | | Added the check against UnitClass in freeLocalsTraverser. Closes SI-5245. Review by odersky.
* Test for SI-5230Eugene Burmako2011-11-292-0/+20
|
* Revised macro defs, added a test case.Martin Odersky2011-11-282-0/+11
|
* Reflection toolboxes now respect settings that ...Eugene Burmako2011-11-282-0/+33
| | | | | | | | | | | Reflection toolboxes now respect settings that are provided to them. Before the fix CompilerCommand lacked the (args, settings, errorFn) ctor. I added it and provided means to augment passed settings with custom errorFn. Closes SI-5239. Review by odersky.
* test case for SI-3566vogt2011-11-281-0/+11
| | | | | no review
* Fix for erroneous bytecode generation.Paul Phillips2011-11-283-0/+25
| | | | | | | | | | | | | | | | | | | A remedy for an IllegalAccessError where generated bytecode referred to an inaccessible type. Closes SI-1430. Bonus materials: - tore out all the invokedynamic support. The shipped jdk7 implementation shows limited resemblance to the one this was written against; the code mostly serves to distract. (I think I could get invokedynamic working pretty quickly, except that it would mean having a codebase for java7 and one for 5-6, which is not a yak I wish to shave today.) - gave NullClass and NothingClass objects of their own, which allowed a nice polymorphic simplification of isSubClass, plus a couple other streamlinings.
* updated test cases for Scala Ant tasksmichelou2011-11-2732-121/+402
|
* Annotations reacquainted with reification.Paul Phillips2011-11-261-0/+6
| | | | | | | Had AnnotationInfo extend Product3 since it's no longer a case class. Tried to make reflection a little more robust. Closes SI-5223, review by vogt.
* Reworked AnnotationInfo patch.Paul Phillips2011-11-231-10/+4
| | | | | | | | Took a more ambitious swing based on input from martin. Eliminated the external map and gave annotations a more useful inheritance hierarchy. Eliminated AnnotationInfoBase and made LazyAnnotationInfo an AnnotationInfo (just like LazyType is a Type.) Review by odersky.
* Make partest work with spaces in the path (from...Stefan Zeiger2011-11-221-4/+4
| | | | | | | | | | | | | | Make partest work with spaces in the path (from batch script and ant task). - The 'partest' ant task gets a new 'compilerargs' element for scalac - options (like in scalacfork and javac). Fixed argument list handling - in partest task. Further improvements to argument list handling for - all ant tasks. Fixed argument list handling in DirectTest (used by - partest shell scripts) Fixed path handling in several test cases. Closes SI-622. Review by phaller.
* Compiler part of fast orElse.Martin Odersky2011-11-221-16/+0
| | | | | | | "According to the spec this code should not be legal. Disabling for now." Need to come back and either make it work or (more likely) make nsc reject the test)
* Disabling failing javap test.Paul Phillips2011-11-202-49/+0
| | | | | | Really hope we can sort this all out as it was a miracle to get this test in place in the first place.
* Fix and re-enable test, that got broken by chan...amin2011-11-161-0/+38
| | | | | | Fix and re-enable test, that got broken by changes to reflection API in rev 26014. Review by odersky.
* Disabled broken test, review by odersky.Paul Phillips2011-11-161-38/+0
|
* Reverted ProductN parent for case classes.Paul Phillips2011-11-167-103/+81
| | | | | Looks like we will need blood, toil, tears, and sweat. No review.
* Towards better reflection APIs.Martin Odersky2011-11-151-1/+1
|
* Changed reflection to allow getting a Scala Sym...amin2011-11-151-6/+26
| | | | | | Changed reflection to allow getting a Scala Symbol for the implementation class of a trait.
* revert r25877. no reviewLukas Rytz2011-11-1418-0/+0
|
* Sin some more.Paul Phillips2011-11-132-0/+7
| | | | | | | | | | | "Fiddle with lubs and glbs by never considering getClass as a member in a refinement generated from them. In a sense we have justification for this by saying we already treated getClass in an ad-hoc way, so we might as well go all the way." -- m. odersky Closes SI-4846.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-113-0/+17
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000609, which has been fixed by odersky. no review.
* Enabled Presentation Compiler test for IDE tick...Micro Dotta2011-11-113-0/+50
| | | | | | Enabled Presentation Compiler test for IDE ticket #1000349, which has been fixed by odersky in r25625. no review.
* Deprecated ambiguous dot syntaxes.Paul Phillips2011-11-116-0/+46
| | | | | | | | | | | | | | | 1.+(2) - what is it? Is it 3 or 3.0? Come scala 2.11 you won't have to not know (or even not know there's something you don't know.) 1.+(2) will then be safely considered equivalent to 1 + 2, because any dot not followed by a digit is not part of a number. Primarily, that's these forms: 3.f 3.d 3. If you prefer an error to a warning, use -Xfuture. Let's deprecate 012 == 10 too! (See comment.) References SI-5089, no review.
* A comment answering one of adriaan's philosophi...Paul Phillips2011-11-111-0/+8
| | | | | | A comment answering one of adriaan's philosophical musings on why programs fail, and a test case informed by the comment. Review by moors.
* Allow to load $class classes using Scala reflec...Grzegorz Kossakowski2011-11-101-0/+18
| | | | | | | | | | | | | | Allow to load $class classes using Scala reflection. Tweaked implementation of invalidClassName method to exclude *$class clasess from the set of invalid names. It's not exactly clear what was the intent of this method in first place so I'm not sure if it's the best way to fix SI-5176. Added test-case that covers this issue. Fixes SI-5176. Review by odersky.
* Fixing tests, no review.Paul Phillips2011-11-101-1/+1
|
* Fix for regression in overriding with defaults.Paul Phillips2011-11-101-0/+11
| | | | | | | I should know better than to behave as if usable inferences can be drawn from a comment like "SYNTHETIC because of DEVIRTUALIZE". Maybe it was even true when it was written, but no more. Closes SI-5178, no review.
* Updates for the ten tests I broke recently.Paul Phillips2011-11-0810-19/+43
| | | | | Wow, ten tests, that's unexpected. No review.
* smarter bridges to unappliesAdriaan Moors2011-11-082-0/+41
| | | | | | | | | | | wraps the call to a bridged synthetic unapply(Seq) in a defensive if-test: if (x.isInstanceOf[expectedType]) real.unapply(x.asInstanceOf[expectedType]) else None NOTE: the test is WRONG, but it has to be due to #1697/#2337 -- once those are fixed, this one should generate the expected output
* Fixing logic in structural types.Paul Phillips2011-11-082-0/+8
| | | | | | | Check number of arguments before jumping to conclusion that a primitive seeming structural call might really be primitive. Closes SI-4766, no review.
* Third collections commit from Todd Vierling.Paul Phillips2011-11-071-6/+6
| | | | | | | Misc cleanups associated with the previous commits: limiting overly expanded types, fixing externally visible types for scaladoc, utilizing abstract collection classes where possible, etc.
* Closes IDE-1000567, SI 5013. No Review.Martin Odersky2011-11-072-0/+10
|
* A couple bits of r25957 lost under time pressure.Paul Phillips2011-11-071-1/+2
| | | | | No review.
* Another round of pleasing the gods of init order.Paul Phillips2011-11-071-1/+1
| | | | | | | Moved all the eagerly evaluated bits to the top of the file so I can see them all at once. Let a dozen vals unroll up front so initialization is more predictable. No review.
* Fix crash with HK types.Paul Phillips2011-11-072-0/+26
| | | | | | | Another page in the storied history of "call .tpe when one should have called .tpeHK", in this case leading to a crash of stacktraciness. Closes SI-5152, review by moors.
* Fixed hang in typechecker.Paul Phillips2011-11-071-0/+21
| | | | | | | Another page in the storied history of "check the normalized type, then act on the unnormalized type", in this case leading to a tight loop of foreverness. Closes SI-5156, review by moors.