summaryrefslogtreecommitdiff
path: root/test/files/res
Commit message (Collapse)AuthorAgeFilesLines
* SI-5489 Avoid accidentally adding members to Object in erasure.Jason Zaugg2012-07-013-0/+20
| | | | | | | | | | | `Symbol#classBound` assumed that `refinedType` would return a a type based on new refinement class symbol; but that isn't so during erasure. Instead, it returns the first super class, into which we entered new members. Needless to say, the next run of the resident compiler didn't take kindly to these hijinks. To remedy the situation, I've added (yet another) condition on `phase.erasedTypes`.
* SI-5167 An impl class method should refer to its own parameter symbols.Jason Zaugg2012-06-034-0/+25
| | | | | | | | Rather than those of the original method in the trait. If they are shared, parameter renaming in the implementaion class is visible in the original method. This led to a crash in the resident compiler when looking up the default argument getter.
* Begone t1737...Hubert Plociniczak2011-11-027-17/+17
|
* Selective dealiasing when printing errors.Paul Phillips2011-10-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Important note for busy commit log skimmers *** Symbol method "fullName" has been trying to serve the dual role of "how to print a symbol" and "how to find a class file." It cannot serve both these roles simultaneously, primarily because of package objects but other little things as well. Since in the majority of situations we want the one which corresponds to the idealized scala world, not the grubby bytecode, I went with that for fullName. When you require the path to a class (e.g. you are calling Class.forName) you should use javaClassName. package foo { package object bar { class Bippy } } If sym is Bippy's symbol, then sym.fullName == foo.bar.Bippy sym.javaClassName == foo.bar.package.Bippy *** End important note *** There are many situations where we (until now) forewent revealing everything we knew about a type mismatch. For instance, this isn't very helpful of scalac (at least in those more common cases where you didn't define type X on the previous repl line.) scala> type X = Int defined type alias X scala> def f(x: X): Byte = x <console>:8: error: type mismatch; found : X required: Byte def f(x: X): Byte = x ^ Now it says: found : X (which expands to) Int required: Byte def f(x: X): Byte = x ^ In addition I rearchitected a number of methods involving: - finding a symbol's owner - calculating a symbol's name - determining whether to print a prefix No review.
* Renamed tests named bugXXX to tXXX, no review.Paul Phillips2011-08-2436-29/+29
|
* Reversed the values of "is" and "is not" in rec...Paul Phillips2011-08-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Reversed the values of "is" and "is not" in recent for comprehension deprecation. DO NOT BLOW HATCH REPEAT DO NOT BLOW HATCH "Roger! Hatch blown." Events reveal it was all baby, no bathwater. It turns out that the specification is merely a document, not infallible holy writ as we had all previously believed. So it is not the ABSENCE of val in a for comprehension assignment which is deprecated, it is the PRESENCE of val. Summarizing again, more accurately perhaps: for (x <- 1 to 5 ; y = x) yield x+y // THAT's the one for (val x <- 1 to 5 ; y = x) yield x+y // fail for (val x <- 1 to 5 ; val y = x) yield x+y // fail for (x <- 1 to 5 ; val y = x) yield x+y // deprecated No review.
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-283-4/+4
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Some fixes for partest issues.Paul Phillips2011-01-121-3/+0
| | | | | | | | prejudice and puts the new process code to work instead. There are still a couple bugs on my short term partest list. If this commit causes some weird issue which only arises on virtualized windows you can expect to hear from me next by postcard from st. lucia. No review.
* Rolled partest back to r21328.Paul Phillips2010-05-061-2/+3
| | | | | | | | changes necessary to plug it back in while preserving everything which has happened since then in tests and such, but we should be the lookout for overreversion. Review by phaller (but as a formality, I don't think it requires direct review.)
* If I work on this patch any longer without chec...Paul Phillips2010-04-051-3/+2
| | | | | | | | | | | | | | | | 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.]
* [no content change] Fixed all SVN properties: m...Gilles Dubochet2009-09-2411-11/+11
| | | | | | | | [no content change] Fixed all SVN properties: mimes, EOL, executable. Id expansion is consistently enabled for Scala/Java/C# sources in 'src/' and consistently disabled and removed from everywhere else: there should not be any dead Id tags anymore.
* Named and default argumentsLukas Rytz2009-05-301-3/+3
| | | | | | | - MethodTypes now have (params: List[Symbol]) - "copy"-methods for case classes - the "copy" object in the compiler is now called "treeCopy"
* SuperSABBUS runs the full test suite and is fas...Gilles Dubochet2008-03-068-16/+16
| | | | | | | | | | SuperSABBUS runs the full test suite and is faster. - Reorganised build for better dependencies. - Various improvements and fixes in build process' correction and ease-of-use. - Partest Ant task can now run resident tests. - Fixed some issues with Partest.
* Changed paths in resident compiler tests + scal...Philipp Haller2008-03-048-16/+16
| | | | | | Changed paths in resident compiler tests + scalatest so that partest can emulate it.
* Fixed commit test (which breaks partest res tes...Philipp Haller2008-02-298-16/+16
| | | | | Fixed commit test (which breaks partest res tests again)
* Removed superfluous filesPhilipp Haller2008-02-298-35/+0
|
* Modified scalatest and .res files so that parte...Philipp Haller2008-02-2916-16/+51
| | | | | Modified scalatest and .res files so that partest can simulate it
* Massive check-in for IDE.Sean McDirmid2007-09-171-1/+1
|
* [cont'd] suppress "scala." prefix in string rep...Adriaan Moors2007-04-191-3/+3
| | | | | [cont'd] suppress "scala." prefix in string representation of types (in error messages,..) -- forgot to update these check-files
* added one test, changed to check files.Martin Odersky2007-01-081-1/+1
|
* renamed directory 'resident' to match '--res' o...michelou2006-11-2929-0/+216
renamed directory 'resident' to match '--res' option