summaryrefslogtreecommitdiff
path: root/test/files
Commit message (Collapse)AuthorAgeFilesLines
* Fix for a bug in CharArrayReader which made tri...Paul Phillips2011-08-082-0/+31
| | | | | | | | | | Fix for a bug in CharArrayReader which made triple quoted strings fail to parse sometimes. Note: when the temptation strikes to adjust for special cases by letting the regular case happen and subsequently attempting to fix the ball of mutation by selectively applying what seems like the inverse operation, please consider the possibility that this is not the optimal approach. Closes SI-4785, no review.
* Better error message for case class/object matc...Paul Phillips2011-08-073-0/+29
| | | | | | Better error message for case class/object match confusion. Closes SI-4879, no review.
* Avoid some spurious errors after a cyclical ref...Paul Phillips2011-08-072-0/+8
| | | | | | Avoid some spurious errors after a cyclical reference error. Closes SI-2388, no review.
* Improved structural type error messages, and ot...Paul Phillips2011-08-063-0/+45
| | | | | | Improved structural type error messages, and other error message related boosts. Closes SI-4877, review by odersky.
* Fixed bug in the disambiguation of f(foo='bar')...Paul Phillips2011-08-062-0/+13
| | | | | | | | Fixed bug in the disambiguation of f(foo='bar') style method calls in the presence of overloading, parameterization, and by-name arguments. Took the opportunity to clean things up a little bit. Closes SI-4592, review by rytz.
* Disallowed implicit modifier on auxiliary const...Paul Phillips2011-08-062-0/+7
| | | | | | | Disallowed implicit modifier on auxiliary constructors, since it either silently accomplishes nothing or crashes the compiler. If it should do something useful let me know. Closes SI-4882, review by odersky.
* Rewrote the case class synthetic equals method ...Paul Phillips2011-08-052-0/+3
| | | | | | | Rewrote the case class synthetic equals method to be more efficient and to cause fewer problems for compiler hackers who are always saying stuff like "the only place this comes up is case class equals..." No review.
* Issue a warning about classes/objects inside pa...Paul Phillips2011-08-043-0/+11
| | | | | Issue a warning about classes/objects inside package objects, no review.
* Cleanups in Namers and AddInterfaces emerging f...Paul Phillips2011-08-041-1/+1
| | | | | | | | Cleanups in Namers and AddInterfaces emerging from bugfixing attempts and comprehension pursuits. I appear to have accidentally fixed at least one bug, as there are new (correct) warnings when building the compiler involving permanently hidden imports. No review.
* Made error messages like "object List is not a ...Paul Phillips2011-08-023-1/+12
| | | | | | Made error messages like "object List is not a value" be a little more helpful about why that is. No review.
* Working on jar creation infrastructure.Paul Phillips2011-08-013-0/+72
| | | | | | | | | | | | | | | | | | output generation (but only then, since otherwise we're not creating the jar): 1) -Xmain-class foo.Bar will give the jar a Main-Class of foo.Bar 2) Alternatively, if there is only one runnable program, that will be the Main-Class 3) Always, the jar's manifest will have an entry for Scala-Compiler-Version. Not very relatedly, a warning is now issued when a module has a main method but a runnable program will not be generated. Closes SI-4861. This represents an opening step toward automatically recognizing mismatched bytecode situations: coarse, but useful and safe. Review by mirco.
* LiftCode works again, now integrated with new r...Martin Odersky2011-07-302-0/+12
| | | | | | | | LiftCode works again, now integrated with new reflection library. Other changes: def Literal(x: Any) has been deprecated, and all its uses removed. Modifiers has lost positions as fourth case class argument; is now a field, mirroring Tree.pos (this removes junk in patterns and makes reification simpler). Review by extempore.
* Getting LiftCode to work.Martin Odersky2011-07-304-0/+27
|
* Moved test out of pending, closes SI-3628, no r...Paul Phillips2011-07-292-0/+15
| | | | | Moved test out of pending, closes SI-3628, no review.
* Disabled all the old scala.reflect._ tests whic...Paul Phillips2011-07-296-35/+0
| | | | | | Disabled all the old scala.reflect._ tests which are now crash-failing, no review.
* Added two new compiler options:Paul Phillips2011-07-295-0/+93
| | | | | | | | | | | | | | | -Ywarn-adapted-args // also included in -Xlint -Yno-adapted-args The former warns when a () is inserted or an argument list is implicitly tupled. The latter errors under the same conditions. Using these options I found several bugs in the distribution which would otherwise be nearly impossible to spot. These bugs were innocuous (I think) but similar bugs could easily be (and have been) otherwise. Certain particularly threatening scenarios are at minimum warned about regardless of options given. Closes SI-4851, no review.
* Expression type argument instantiation should n...Paul Phillips2011-07-281-0/+12
| | | | | | | | Expression type argument instantiation should not fail in a context expecting Unit if there is any valid instantiation, because value discarding should kick in and offer a literal (). Closes SI-4853, review by odersky.
* Test case for SI-4603, no review.Paul Phillips2011-07-282-0/+15
|
* Changed forwarders not to generate final method...Paul Phillips2011-07-282-0/+33
| | | | | | | Changed forwarders not to generate final methods, which otherwise would induce VerifyErrors anytime the companion class was subclassed and had a method with the same signature. Closes SI-4827, no review.
* Test case closes SI-4172 - I think the output i...Paul Phillips2011-07-272-0/+18
| | | | | Test case closes SI-4172 - I think the output is right anyway - review by rytz.
* A few tests for pending and non-pending, no rev...Paul Phillips2011-07-271-0/+8
| | | | | A few tests for pending and non-pending, no review.
* "Freed the lisp test." Tweaked partest defaults...Paul Phillips2011-07-272-0/+544
| | | | | | "Freed the lisp test." Tweaked partest defaults a little in the hopes that seth tisue is correct in his analysis. No review.
* Fix/workaround for inliner bug uncovered by fin...Paul Phillips2011-07-275-0/+47
| | | | | | | | | | Fix/workaround for inliner bug uncovered by finalizing Option methods. Something in the backend is leaving open but empty blocks in the worklist. Rather than freaking out at the merest mention of an empty block, I quietly remove the empty ones. A proper fix will involve not leaving empty blocks lying around but we're on a schedule here people. Review by dragos.
* Adding the missing ParMap and GenMap methods.Aleksandar Pokopec2011-07-261-0/+52
| | | | | No review.
* Add test for SI-4839. No review.Philipp Haller2011-07-261-0/+8
|
* As per discussion documented in SI-1799, brough...Paul Phillips2011-07-212-0/+21
| | | | | | | | | | | | | | | | | | | | | | As per discussion documented in SI-1799, brought back the ProductN traits and synthesized them into case classes. It's -Xexperimental for now because there may be minor implications for existing code which should be discussed. And also because I snuck in another "improvement" but it's probably too dangerous to be touching productIterator directly and it should go into something else. scala> case class Bippy(x: Int, y: Int) defined class Bippy scala> Bippy(5, 10).productIterator res0: Iterator[Int] = non-empty iterator ^^^----- as opposed to Iterator[Any] There is an even better idea available than lubbing the case class field types: it starts with "H" and ends with "List"... Review by oderksy.
* Restored test case for SI-2873 which hubert had...Paul Phillips2011-07-192-0/+6
| | | | | | | Restored test case for SI-2873 which hubert had callously deleted back when it was briefly irrelevant. It would have been failing were it around, but now it passes. Closes SI-2873, no review.
* Modified erasure so we have enough information ...Paul Phillips2011-07-182-0/+11
| | | | | | | | | | | | Modified erasure so we have enough information to determine whether we need to use scala or java erasure semantics. This fixes the runtime failure illustrated here: % scala29 -e 'java.util.Collections.max(null)' java.lang.NoSuchMethodError: java.util.Collections.max(Ljava/util/Collection;)Ljava/lang/Comparable; Review by odersky.
* Fixed adriaan's patch for type constructor infe...Paul Phillips2011-07-181-0/+5
| | | | | | | | Fixed adriaan's patch for type constructor inference. The problem with haranguing people in bars about bugs is that the fixes with which they provide you may be flawed. Fortunately moors has this novelist on retainer. Review by moors.
* Workaround for scalacheck calling System.exit d...Paul Phillips2011-07-181-1/+1
| | | | | | | | | Workaround for scalacheck calling System.exit during testing. Not sure exactly what the sequence of events is here: I found the exit problem months ago and committed code to scalacheck to make that configurable, and then didn't see it again until recently, but I don't think it was ever addressed. This is just a bandaid. No review.
* Brought scalacheck up to date with scalacheck t...Paul Phillips2011-07-161-1/+1
| | | | | | Brought scalacheck up to date with scalacheck trunk (rev 06612e965d) and rebuilt jar against r25318, no review.
* Reverting recent type constructor patch until I...Paul Phillips2011-07-161-5/+0
| | | | | | Reverting recent type constructor patch until I can see why scalacheck is getting blinkered by it. No review.
* Test case for ticket #4582.Paul Phillips2011-07-161-0/+11
| | | | | Contributed by Daniel C. Sobral.
* Changes to reflection.Martin Odersky2011-07-161-1/+1
|
* Fixed a big bug in type constructor unification...Paul Phillips2011-07-161-0/+5
| | | | | | | | | | | | | Fixed a big bug in type constructor unification caused by considering only the parents rather than all the base types. This fix is a testament to the power of haranguing people in bars when you are deeply offended by a bug, like someone was by this one: def f[CC[X] <: Traversable[X]](x: CC[Int]) = () f(1 to 5) // did not compile! Fear not, it does now Review by moors.
* prohibit case-to-case inheritance instead of is...Hubert Plociniczak2011-07-136-4/+11
| | | | | | | prohibit case-to-case inheritance instead of issuing warning. closes #4109. review by extempore, since it should make your life much easier in the pattern matcher
* Don't enter into same line infinite recursion w...Paul Phillips2011-07-132-0/+15
| | | | | | Don't enter into same line infinite recursion when erroneous code involves a self-normalizing type alias. Closes #3240, review by moors.
* Test case closes #3371, no review.Paul Phillips2011-07-131-0/+9
|
* Test case closes #1432, no review.Paul Phillips2011-07-132-0/+18
|
* Bounded wildcard types arising during pattern t...Paul Phillips2011-07-133-0/+38
| | | | | | Bounded wildcard types arising during pattern type inference can cause unnecessary crashes. Closes #1048, review by odersky.
* Catch type projections even when they disguise ...Paul Phillips2011-07-132-0/+14
| | | | | | Catch type projections even when they disguise themselves as stable via singleton bounds. Closes #1431, review by odersky.
* Suppressed an error in type constructor bounds ...Paul Phillips2011-07-132-0/+9
| | | | | | Suppressed an error in type constructor bounds checking which was obscuring the meaningful error to follow. Review by moors.
* Making power mode startup a little less glacial...Paul Phillips2011-07-121-1/+1
| | | | | Making power mode startup a little less glacial, no review.
* A bunch of repl stuff.Paul Phillips2011-07-121-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type mismatches, for real this time. :power mode goes to phase typer automatically. You can get the symbols for repl-defined names more directly: scala> case class Bippy(x: Int) defined class Bippy scala> intp.terms("Bippy") res1: intp.global.Symbol = object Bippy scala> intp.types("Bippy") res2: intp.global.Symbol = class Bippy scala> intp("Bippy") // tries type first res3: intp.global.Symbol = class Bippy scala> intp("scala.collection.Map") // falls back to fully qualified res4: intp.global.Symbol = trait Map I changed the implicit which used to install "tpe" and "symbol" to install "tpe_" and "symbol_" because it was too easy to do something you didn't mean to, like calling x.tpe where x is a Manifest. Said implicit now handles manifest type arguments, so you can get the full translation from a manifest representation to a compiler type, at least for simple types and only as much as manifests work, which is not that much. Fortunately that situation is all changing soon. scala> List(List(1, 2, 3)).tpe_ res5: power.Type = List[List[Int]] scala> res5.typeArgs res6: List[power.global.Type] = List(List[Int]) Review by moors.
* Fixes #4398.Aleksandar Pokopec2011-07-111-0/+11
| | | | | Review by extempore.
* Fixes #4709.Aleksandar Pokopec2011-07-111-0/+10
| | | | | Review by extempore.
* Fixes #4723.Aleksandar Pokopec2011-07-111-0/+9
| | | | | Review by extempore.
* Making empty streams serializable.Aleksandar Pokopec2011-07-112-0/+26
| | | | | No review.
* Fixes #4761.Aleksandar Pokopec2011-07-112-0/+19
| | | | | | | This changes the signature of flatten - I do not see how to use a @bridge annotation here, since after erasure both the bridge and the original method have the same signature. Review by extempore.
* Moved a warning behind -Xlint.Paul Phillips2011-07-091-1/+1
| | | | | meant for --grep to look in checkfiles too, and now it does. No review.