summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* The eagerly awaited companion commit to r23622,...Paul Phillips2011-06-012-3/+3
| | | | | | | | | | | | | | | The eagerly awaited companion commit to r23622, the surprise hit of last winter. Singletons now have the singleton type inferred in monomorphic contexts as well. In english: scala> object X defined module X scala> def f = X f: X.type Wait, that's not english. English review by moors.
* Fixed a repl regression with parentheses handli...Paul Phillips2011-05-312-0/+41
| | | | | | | | Fixed a repl regression with parentheses handling, reminding me we really need that honest parser phase which doesn't betray us with parentheses abandonment and dramatic desugarings. I'll promote it from page 14 to page 11. Closes #4661, no review.
* A getter with type params is still a getter.Paul Phillips2011-05-311-0/+6
| | | | | | | | There were two distinct bugs in here, which if I ran the world would be a wakeup call that robust software cannot emerge from thousands of lines of low-level AST matching. In case you are frozen in suspense: I do not run the world. Review by moors.
* Restored the lisp.scala test.Paul Phillips2011-05-312-0/+0
| | | | | test in r25038, so closes #4512, no review.
* Cleaning up power mode import issues (and the a...Paul Phillips2011-05-312-0/+28
| | | | | | Cleaning up power mode import issues (and the amazing first power mode test) no review.
* Now :t types declarations as well as expression...Paul Phillips2011-05-294-26/+80
| | | | | | | Now :t types declarations as well as expressions, and cleans up the output the same way the repl does so stray unsolved type constraints don't befuddle anyone. Closes #4391, no review.
* Give some feedback on invalid :type expressions.Paul Phillips2011-05-292-0/+26
|
* Fixed a crasher in the scanner when unicode esc...Paul Phillips2011-05-292-0/+5
| | | | | | | | Fixed a crasher in the scanner when unicode escape sequences offered up EOF before completion. Also made the repl a little more robust against crashers in scalac. Treat it like a hostile witness! Closes #4584, no review.
* Each of the three commits preceding this are to...Paul Phillips2011-05-291-0/+0
| | | | | | | | | | | Each of the three commits preceding this are to correct regressions which would have been caught by the interpreter test and never checked in in the first place, were it not disabled. The windows tax claims another victim. Or three victims. Re-enabled the interpreter test. No way for me to know if it will pass everywhere without trying it. No review.
* Fixing an interpreter output regression and upd...Paul Phillips2011-05-291-1/+1
| | | | | | Fixing an interpreter output regression and updated repl debugging and tracing code. No review.
* Yikes, prependToList was violating List immutab...Paul Phillips2011-05-282-0/+14
| | | | | | Yikes, prependToList was violating List immutability. Closes #4656, no review.
* Overcoming limitations of the repl, multiple-tr...Paul Phillips2011-05-272-0/+52
| | | | | | | | | | | | | | | | | | Overcoming limitations of the repl, multiple-tree lines and assignments. The best part of nicely documented limitations is that you can stare at the same comment for years and then the day comes when you give it the heave-ho. Exhibit A (regarding a single bare expression): "This is necessary due to it being hard to modify code at a textual level, and it being hard to submit an AST to the compiler." Yes, it IS hard to modify code at a textual level (see enclosed patch) but we won't let that stop us anymore. Closes #4578. Exhibit B (regarding the left hand side of assignments having to be Ident): "An unfortunate limitation." Unfortunate no longer! No review.
* Finished reverting the misbegotten r23262, no r...Paul Phillips2011-05-263-1/+7
| | | | | Finished reverting the misbegotten r23262, no review.
* Fix for failing { val x = classOf[List[_]] } in...Paul Phillips2011-05-233-0/+10
| | | | | | | Fix for failing { val x = classOf[List[_]] } introduced by paulp in r23262. I already had this in mind (see comments of #4419) but I was holding back in the runup to 2.9. Closes #4419, review by odersky.
* Reverts a change as a tribute to the performanc...Paul Phillips2011-05-231-1/+11
| | | | | Reverts a change as a tribute to the performance gods, no review.
* Regression in Enumeration caused some nullary m...Paul Phillips2011-05-222-0/+9
| | | | | | Regression in Enumeration caused some nullary methods to pose as fields. Closes #4570, no review.
* Making Range creation less slow, no review.Paul Phillips2011-05-211-1/+1
|
* Removes SUnit (long deprecated!) from the stand...Paul Phillips2011-05-1925-1293/+1141
| | | | | | | | | | | | Removes SUnit (long deprecated!) from the standard library. the relatively small number of partest tests in Scala's suite that were still using SUnit now either just use regular asserts, or they print stuff that partest checks with a .check file. Also fixed some bad indentation, removed ancient useless-looking commented-out code, etc. Contributed by Seth Tisue (way to go seth) no review.
* Suppress unwanted noise generated by javac when...Paul Phillips2011-05-193-6/+4
| | | | | | | | | | | | | Suppress unwanted noise generated by javac when compiling test case for #1263. formerly the test case caused this to be printed: Note: test/files/pos/t1263/Test.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. we suppress this using @SuppressWarnings. Contributed by Seth Tisue, no review.
* Apparent assumption that Literal(0) would be ad...Paul Phillips2011-05-192-0/+16
| | | | | | | Apparent assumption that Literal(0) would be adapted to Literal(0.0f) as necessary mercilessly invalidated. Fixed mkZero to account for all types explicitly. Closes #4617, no review.
* Fixes and closes #4608.Aleksandar Pokopec2011-05-191-0/+11
| | | | | No review.
* Fixed #4593.Iulian Dragos2011-05-171-0/+20
|
* Closes 4560. Review by dragos.Martin Odersky2011-05-162-0/+17
|
* Temporarily sending lisp.scala to be interprete...Paul Phillips2011-05-152-0/+0
| | | | | | | | Temporarily sending lisp.scala to be interpreter.scala's equally memory hungry buddy in pending. References #4512. This should be straightened out imminently, but I will solve this more easily by looking forward, not backward. No review.
* Fix for view+groupBy closes #4558, no review.Paul Phillips2011-05-141-0/+6
|
* Regenerated automated tests for inner objects.Iulian Dragos2011-05-112-5802/+1053
| | | | | | single threaded and multi-threaded access, plus private objects. Should catch most possible nesting of objects.
* Renaming the inner objects test file. no review.Iulian Dragos2011-05-112-0/+0
|
* New test. No review.Martin Odersky2011-05-112-0/+24
|
* Closes #4565.Hubert Plociniczak2011-05-114-0/+6921
|
* close #4441. no reviewLukas Rytz2011-05-101-0/+5
|
* Made -Yno-predef work again, also in the repl.Paul Phillips2011-05-073-0/+20
| | | | | | | do I import" code to notice _root_.scala.Predef too. Moved some of the overly specialized, called-only-once functions in treeInfo inside the one function which needs them. References #1931. No review.
* Good, I got the whitespace wrong, trying to emb...Paul Phillips2011-05-071-2/+1
| | | | | | | Good, I got the whitespace wrong, trying to embed a working checkfile for windows so I don't have to abandon my one javap test. I think I'm ready for NASA. No review.
* Made GenTraversableOnce public.Paul Phillips2011-05-072-3/+3
| | | | | No review.
* Attempting to make the :javap test pass on wind...Paul Phillips2011-05-071-0/+26
| | | | | Attempting to make the :javap test pass on windows, no review.
* Tightened a condition to avoid a self-referenti...Paul Phillips2011-05-062-0/+15
| | | | | | Tightened a condition to avoid a self-referential pattern variable crash. Closes #3392, no review.
* Finally figured out what was going on with a ce...Paul Phillips2011-05-068-10/+115
| | | | | | | Finally figured out what was going on with a certain class of exhaustiveness checking bugs. Hey moors, you can put away your pins, puppets, and magic sauces. Closes #3098, no review.
* Help :javap find nested repl-defined objects.Paul Phillips2011-05-062-0/+24
| | | | | no review.
* Be silent when compiling the repl extraction ob...Paul Phillips2011-05-052-0/+33
| | | | | | | Be silent when compiling the repl extraction object to suppress spurious warnings. Also corrected the busted logic for spotting repl wrappers. Closes #4542, no review.
* Makes BigInt's isValidThing methods make some k...Paul Phillips2011-05-051-0/+20
| | | | | | | Makes BigInt's isValidThing methods make some kind of sense. I wish I hadn't written so much code for the numerical classes which languishes in git tributaries. Closes #4540, no review.
* A better test case for #4537 than the one r2488...Paul Phillips2011-05-054-0/+22
| | | | | | A better test case for #4537 than the one r24881 didn't include, no review.
* close #4524 and close #4425, review by odersky.Lukas Rytz2011-05-053-0/+17
|
* fix #4502 and fix #4430. review by odersky.Lukas Rytz2011-05-052-0/+23
|
* Fixes and closes #4461. No review.Aleksandar Pokopec2011-05-042-0/+26
|
* Fixes and closes #4535.Aleksandar Pokopec2011-05-042-0/+33
| | | | | No review.
* Fix for failing test, no review.Paul Phillips2011-05-041-1/+1
|
* rewrite of nested objects implementation.Hubert Plociniczak2011-05-031-5/+0
| | | | | review by odersky, dragos and whoever feels like it.
* Since I don't want to commit anything "interest...Paul Phillips2011-05-019-21/+21
| | | | | | | | Since I don't want to commit anything "interesting" until we ship 2.9, a few uninteresting cleanups involving how types are printed, getting some debugging code in shape to prepare for the long winter ahead, etc. No review.
* Completely to my surprise, found that fixing al...Paul Phillips2011-04-304-21/+17
| | | | | | | | Completely to my surprise, found that fixing all those sequence issues revealed that the pattern matcher can catch a lot more inexhaustive cases than it has been catching. Fixed most of the inexhaustive matches in the compiler, which had become a bit warnier. No review.
* Don't crash the pickler with erroneous types.Paul Phillips2011-04-302-0/+12
|
* Fixing the pattern matcher regression I introdu...Paul Phillips2011-04-292-0/+580
| | | | | | | | Fixing the pattern matcher regression I introduced between rc1 and rc2. Not done with this situation but at least I managed to boil out the big problem and keep my five closed pattern matcher tickets to boot. Closes #4523, no review.