summaryrefslogtreecommitdiff
path: root/test/files/neg
Commit message (Collapse)AuthorAgeFilesLines
* Fixed typo in error message. No review.Martin Odersky2010-04-231-2/+2
|
* Improved @tailrec error messages to specify the...Paul Phillips2010-04-152-22/+40
| | | | | | | Improved @tailrec error messages to specify the reason. In the process fixed old bug involving tail call transformation. Closes #3275, #2018. Review by dragos.
* Removed a bunch of -Y warning options.Paul Phillips2010-04-152-2/+2
| | | | | | | back in the form of a compiler plugin. Also promoted -Yfatal-warnings to -Xfatal-warnings: this is key to writing tests which involve warnings and should be at least semi-supported. Closes #3300, no review.
* changed testfile, to satisfy new diff algo (whi...Martin Odersky2010-04-121-1/+1
| | | | | | changed testfile, to satisfy new diff algo (which should be reverted IMO). review by extempore.
* Closes #3224. Review by retronym.Martin Odersky2010-04-122-0/+36
|
* Companion objects of primitive types are now va...Iulian Dragos2010-04-094-14/+0
| | | | | | | | | Companion objects of primitive types are now values. Term 'scala.Int' resolves in bytecode to an instance of 'scala.runtime.Int'. This is the first step towards replacing strings in @specialized with a proper list of types, so instead of @specialized("Int, Float") one will write @specialized(Int, Float). Review by odersky.
* As a brief diversion from real work, implemente...Paul Phillips2010-04-061-1/+1
| | | | | | | | | As a brief diversion from real work, implemented Damerau–Levenshtein and ran it on trunk to elicit obvious misspellings. Unfortunately they're mostly in places like compiler comments which real people never see, but I fixed them anyway. All those English Lit majors who peruse our sources are sure to be pleased. No review.
* Fix for the partest task to fail the build when...Paul Phillips2010-04-061-2/+2
| | | | | | | | Fix for the partest task to fail the build when a test fails, and fixes for 2/3 of the quietly failing tests. I'm not quite sure what to do about the view ones, it doesn't look like a simple rename is going to cut it, so: review by odersky.
* If I work on this patch any longer without chec...Paul Phillips2010-04-058-28/+7
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* close #3222. review by communityLukas Rytz2010-03-312-0/+22
|
* Closes #2386 by requiring class manifests for a...Martin Odersky2010-03-292-0/+7
| | | | | | Closes #2386 by requiring class manifests for an array element type if a class manifaest for the array type is demanded. Review by dubochet.
* new testsMartin Odersky2010-03-164-34/+10
|
* Leveraged -Xmigration to burn off some warts wh...Paul Phillips2010-03-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Leveraged -Xmigration to burn off some warts which arose in the new collections. Warnings put in place for behavioral changes, allowing the following. 1) Buffers: create new collections on ++ and -- like all the other collections. 2) Maps: eliminated never-shipped redundant method valuesIterable and supplied these return types: def keys: Iterable[A] def keysIterator: Iterator[A] def values: Iterable[B] def valuesIterator: Iterator[B] def keySet: Set[A] I concluded that keys should return Iterable because keySet also exists on Map, and is not solely in the province of Maps even if we wanted to change it: it's defined on Sorted and also appears in some Sets. So it seems sensible to have keySet return a Set and keys return the more general type. Closes #3089, #3145. Review by odersky.
* Fixed failing test t3115 via judicious applicat...Paul Phillips2010-03-082-4/+5
| | | | | | Fixed failing test t3115 via judicious application of -Yfatal-warnings. No review.
* new testsMartin Odersky2010-03-084-0/+38
|
* Closes #3115. Reviw by rytzMartin Odersky2010-03-082-0/+16
|
* Added -Xmigration option and @migration annotat...Paul Phillips2010-03-053-0/+21
| | | | | | | | | | | | Added -Xmigration option and @migration annotation. At present it will warn about the following changes from 2.7 to 2.8: Stack iterator order reversed mutable.Set.map returns a Set and thus discards duplicates A case 'x @ Pattern' matches differently than 'Pattern' Review by odersky.
* Closes #3118. review by extemporeMartin Odersky2010-03-042-0/+15
|
* Expanded the check from #1392 to enclose #3123 ...Paul Phillips2010-02-272-0/+9
| | | | | | Expanded the check from #1392 to enclose #3123 as well so that "case Int => " doesn't crash. Closes #3123. Review by odersky.
* Special cased an error message for the common s...Paul Phillips2010-02-271-4/+2
| | | | | | Special cased an error message for the common situation of calling AnyRef methods on Any or AnyVal. Review by odersky.
* closes #3082, review by rytzMartin Odersky2010-02-261-2/+2
|
* Tweaking the sealed logic in light of #3097.Paul Phillips2010-02-251-1/+1
| | | | | | | Reorganizes children a little so they always come back sorted the same way the pickler does. Taking advantage of -Yfatal-warnings in the test case. Review by community.
* Tighter pattern matching hits the street.Paul Phillips2010-02-183-1/+55
| | | | | | | | | | | | | is final and does not conform to the pattern, it will no longer compile. See all the exciting things you can no longer do: "bob".reverse match { case Seq('b', 'o', 'b') => true } // denied! "bob".toArray match { case Seq('b', 'o', 'b') => true } // rejected! final class Dunk def f3(x: Dunk) = x match { case Seq('b', 'o', 'b') => true } // uh-uh! And so forth. Review by odersky.
* Test case for #2148. Closes #2148, no review.Paul Phillips2010-01-192-0/+14
|
* new test. no review.Martin Odersky2010-01-182-0/+15
|
* Reverts r20311 since I'm not seeing what's goin...Paul Phillips2010-01-131-1/+1
| | | | | | Reverts r20311 since I'm not seeing what's going on in #2876 and the optimization can wait.
* new tests. no review.Martin Odersky2010-01-132-0/+16
|
* closes #2421: more complete fix, now also check...Adriaan Moors2010-01-132-0/+21
| | | | | | | closes #2421: more complete fix, now also check validity of inferred type arguments for expressions inferred for implicit values review by odersky
* Moved plugin neg tests to pending. No review.Philipp Haller2010-01-0542-368/+0
|
* rebuilt plugin test jars. no reviewLukas Rytz2010-01-056-6/+6
|
* Added extensive statistics, reduced time of imp...Martin Odersky2010-01-041-5/+1
| | | | | | Added extensive statistics, reduced time of implicit resolution by 2/3rds, of whole typer by 1/4 to 1/3rd.
* Created team of private[collection] abstract cl...Paul Phillips2009-12-231-1/+1
| | | | | | | | | | | | Created team of private[collection] abstract classes and traits in scala.collection.views. Factored boilerplate and base Transformed traits out of *ViewLike classes. Executive summary and motivation: 4812029 Dec 23 09:47 scala-library.jar // before 4604150 Dec 23 09:24 scala-library.jar // after Direct size savings of 4.5%. Review by odersky.
* fix the build. no review.Lukas Rytz2009-12-221-1/+1
|
* Closed #2801.Martin Odersky2009-12-182-0/+9
|
* added test case for #2775 and commented the han...Martin Odersky2009-12-182-0/+5
| | | | | | added test case for #2775 and commented the handling code in Implicits better. Gilles already had a look so noreview.
* Closed #2779. review by community.Martin Odersky2009-12-182-0/+29
|
* Updated copyright notices to 2010Antonio Cunei2009-12-072-2/+2
|
* (Temporarily) closes #2139Antonio Cunei2009-11-302-0/+21
|
* closed #2624: instantiate type params after eta...Adriaan Moors2009-11-252-16/+16
| | | | | | | | | closed #2624: instantiate type params after eta expansion of polymorphic method does not blow the stack on pos/t0674 (previous private fix did typed(tree); instantiate(tree) instead of instantiate(typed(tree))) fixed check file for neg/bug608 -- got better error message
* Closed #1226. Added new test cases.Martin Odersky2009-11-232-0/+70
|
* Closed #2642Martin Odersky2009-11-202-5/+5
|
* closes #1422Hubert Plociniczak2009-11-202-0/+5
|
* Finally completed the incredibly tedious task o...Paul Phillips2009-11-1814-26/+26
| | | | | | Finally completed the incredibly tedious task of removing the lower case primitive aliases from Predef. Had to rebuild msil.jar along the way.
* Fixes #1477 by requiring that abstract types wi...Martin Odersky2009-11-136-0/+51
| | | | | | Fixes #1477 by requiring that abstract types with non-volatile upper bounds cannot be overridden by volatile types.
* updated plugin-multiple-rafter plugins.jarAntonio Cunei2009-11-131-1/+1
|
* fix #2488.Lukas Rytz2009-11-122-27/+23
|
* Fixed #2504Martin Odersky2009-11-092-0/+34
| | | | | Fixed #2517
* Updates check file for bug 2144 which output wa...Gilles Dubochet2009-11-081-2/+2
| | | | | Updates check file for bug 2144 which output was modified by r19442.
* Tighter type checking rules for structural type...Gilles Dubochet2009-11-082-39/+60
| | | | | | Tighter type checking rules for structural types that fix issues #967, #1004, #1388, #1494, and #1906.
* Proposed fix for #2144 plus test case.Paul Phillips2009-11-042-0/+7
|