summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Guess I can't have a javap test with no javap.Paul Phillips2011-02-072-0/+0
|
* Added all the javap command line options to :ja...Paul Phillips2011-02-072-0/+42
| | | | | Added all the javap command line options to :javap. No review.
* The comment for isCoDefinedWith has long saidPaul Phillips2011-02-071-0/+7
| | | | | | | | | | | Is this symbol defined in the same scope and compilation unit as `that' symbol? But "same scope" was never checked, only "same compilation unit." Presumably other layers of logic kept this from being noticed until now, but it has been crashing sbt. Added check to isCoDefinedWith. Closes #4220, review by odersky.
* Fix for parser regression allowing 0-case match...Paul Phillips2011-02-072-0/+7
| | | | | | Fix for parser regression allowing 0-case match blocks. Closes #4217, no review.
* Fix for failing test.Paul Phillips2011-02-061-1/+2
| | | | | | anything fail. This test might be a bit overly output-sensitive to be in the general pool... no review.
* Re-enabled test spec-traits (removed the swing ...Iulian Dragos2011-02-051-19/+0
| | | | | | Re-enabled test spec-traits (removed the swing dependent part, since all it tested was call-by-name parameters). no review.
* [scaladoc] Likely fix for broken build.Gilles Dubochet2011-02-041-2/+9
|
* After discovering #3376 was fixed I gave in and...Paul Phillips2011-02-043-35/+36
| | | | | | | | After discovering #3376 was fixed I gave in and tried to write a test. Now that the fiddling is over you can write repl tests without creating 5000 streams and settings. Look at test/files/run/bug3376.scala or jvm/interpreter.scala to see. Test case closes #3376, no review.
* Switched back to StoreReporter for presentation...Iulian Dragos2011-02-034-0/+0
| | | | | | | | Switched back to StoreReporter for presentation compiler tests. This eats up error messages, but if the output is correct we don't mind a spurious error here and there. Renabled simple presentation compiler tests. no review.
* Updated completion tests, still waiting for a d...Iulian Dragos2011-02-022-51/+261
| | | | | | Updated completion tests, still waiting for a divergent implicits fix in the presentation compiler. no review.
* I keep seeing huge simplifications available in...Paul Phillips2011-02-012-4/+4
| | | | | | | | | I keep seeing huge simplifications available in the repl. Lot of interesting features have come to town since it was first conceived. In this commit I give the internal names some tips on aesthetics, and put each line in its own package like civilized artificial constructs. No review.
* I found more situations where primitive types w...Paul Phillips2011-02-011-0/+11
| | | | | | | | I found more situations where primitive types were appearing in signatures. I hacked in a flag which says boxing is or is not allowed. The code is getting hideous: foortunately I have it mostly rewritten, but I wanted to fix this bug now. No review.
* There is a lot of housecleaning to be done.Paul Phillips2011-01-291-3/+3
| | | | | | | | | | | | up the stray interpreter files and put them in the interpreter package. Would really love to change the name of that package. Went looking for some consistent divisions of responsibility and consistent naming. Made some progress. There are deprecated versions of most everything I changed so hopefully the carnage will be limited. This isn't completely baked but I just realized I broke the build earlier and this should fix it. I'll keep the oven on. No review.
* Fixed some generic signature bugs I found thank...Paul Phillips2011-01-282-0/+8
| | | | | | Fixed some generic signature bugs I found thanks to the compiler telling me it was buggy. Thanks compiler. No review.
* A raw tree was making its way into an error mes...Paul Phillips2011-01-284-6/+12
| | | | | | A raw tree was making its way into an error message. Removed. Closes #4196, no review.
* Forgot to commit the updated tests in my previo...Iulian Dragos2011-01-282-3/+0
| | | | | Forgot to commit the updated tests in my previous commit. no review.
* Made the presentation compiler reporter in inte...Iulian Dragos2011-01-282-6/+7
| | | | | | Made the presentation compiler reporter in interactive tests show up error messages.no review.
* Re-enabled one presentation compiler test.Iulian Dragos2011-01-273-0/+0
|
* Re-enabled another position check in FindTrees.Iulian Dragos2011-01-272-2/+5
|
* Some overdue organization and cleanups in the r...Paul Phillips2011-01-271-1/+3
| | | | | Some overdue organization and cleanups in the repl. No review.
* Disabled presentation compiler tests.Iulian Dragos2011-01-267-0/+0
|
* One last attempt at getting the presentation co...Iulian Dragos2011-01-262-3/+4
| | | | | | One last attempt at getting the presentation compiler pass some tests. no review.
* Merge branch 'work'Aleksandar Pokopec2011-01-2612-4/+122
| | | | | | Conflicts: src/library/scala/concurrent/SyncVar.scala
* closes #3619, #4141.Adriaan Moors2011-01-261-0/+34
| | | | | | | | | | | | | | | | replaced the epic outer.outer.outer by something more robust that goes to the context corresponding to the enclosing class nextOuter determines which context is searched next for implicits (after `this`, which contributes `newImplicits` below) in most cases, it is simply the outer context if we're owned by a constructor, the actual current context and the conceptual context are different when it comes to scoping: the current conceptual scope is the context enclosing the blocks that represent the constructor body (TODO: why is there more than one such block in the outer chain?) review by odersky, extempore
* closes #4137.Adriaan Moors2011-01-262-0/+20
|
* closes #2741, #4079: pickling now ensures that ...Adriaan Moors2011-01-265-0/+54
| | | | | | | | | | | | | | | closes #2741, #4079: pickling now ensures that a local type param with a non-local owner, which will thus get a localized owner, will only get a class as its localized owner if its old owner was a class (otherwise, NoSymbol) this ensures that asSeenFrom does not treat typerefs to this symbol differently after pickling. todo: should we pro-actively set the owner of these type params to something else than the type alias that they originate from? see notes in typeFunAnon review by odersky
* closes #3977.Adriaan Moors2011-01-262-0/+17
| | | | | | review by extempore (because of recent sin against this holy principle)
* A new murmur3 hashcode implementation contribut...Paul Phillips2011-01-252-1/+241
| | | | | | | | | | | | | A new murmur3 hashcode implementation contributed by rex kerr. I'm really happy with it. There is benchmarking code included but you can use the pudding for proof: the compiler compiling itself is clearly faster. I deleted the existing murmur2 implementation which has never left trunk in a release. There remain some possible points of improvement with inlining and/or synthetic method generation, but this is a major improvement over the status quo. Closes #2537, review by prokopec.
* Skip getClass (signature changes between JDK 1....Iulian Dragos2011-01-254-13/+16
| | | | | | | | Skip getClass (signature changes between JDK 1.5 and 1.6) and resolve encoding issue of unicode method name. Disabled part of a test that was not handled correctly by the presentation compiler (yet). Added correct encoding for the presentation compiler test. no review.
* Stripped one more embarrasing absolute path fro...Iulian Dragos2011-01-251-2/+2
| | | | | Stripped one more embarrasing absolute path from test output. no review.
* Increased the timeout for presentation compiler...Iulian Dragos2011-01-241-3/+3
| | | | | | Increased the timeout for presentation compiler tests and stripped aboslute paths from the check file. no review.
* Added presentation compiler tests.Iulian Dragos2011-01-246-0/+491
|
* [scaladoc] Fixed failing test.Gilles Dubochet2011-01-241-21/+16
|
* The AnyVal types become source files instead of...Paul Phillips2011-01-241-8/+8
| | | | | | | | | | | | | | | | | | | The AnyVal types become source files instead of polite compiler fictions. !! You'll need a serious "ant all.clean" now. !! As of this commit the system is fully bootstrapped and the synthetic code eliminated: only the source files remain. The sort-of-AnyVal-companions in scala.runtime.* have all been eliminated because the actual companions can do everything; deprecated vals in the scala.runtime package object point to the companions. This left AnyValCompanion as the only AnyVal related thing in the runtime package: that made little sense, so I deprecated and moved it as well. Starr is based on r24066 plus this commit. Closes #4121. Review by rytz, odersky.
* Disabled failing test, no review.Paul Phillips2011-01-231-0/+0
|
* The empty string commit made me hungry to actua...Paul Phillips2011-01-211-2/+2
| | | | | | | The empty string commit made me hungry to actually know what's in stuff. Now it prints quotes around a string if it's empty or if either the first or last character is whitespace. No review.
* Defer a check from the typer to refcheck so the...Paul Phillips2011-01-202-0/+13
| | | | | | Defer a check from the typer to refcheck so the error message makes some sense. Closes #4174, review by rytz.
* Integrated contributed non-recursive implementa...Paul Phillips2011-01-201-0/+8
| | | | | | | | | | | | Integrated contributed non-recursive implementation of permutations, combinations, subsets, by EastSun. Also gave mutable Seqs an in-place transform method like the one Map has. And couldn't resist slightly reformulating a few set methods, because how can we settle for "forall(that.contains)" when we could have "this forall that". (Which is also what normal people hear when we talk about sets.) Closes #4060, #3644, review by moors.
* Look even harder for attempts to sneak "this" i...Paul Phillips2011-01-204-2/+17
| | | | | | Look even harder for attempts to sneak "this" into superconstructor arguments, and improve positioning. Closes #4166, no review.
* Made ().## and null.## not crash anymore.Paul Phillips2011-01-201-0/+6
|
* Updated copyright notices to 2011Antonio Cunei2011-01-207-7/+7
|
* introduce NullaryMethodType to disambiguate Pol...Adriaan Moors2011-01-203-19/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce NullaryMethodType to disambiguate PolyType motivation: given `def foo[T]: (T, T)` and `type Foo[T] = (T, T)`, `foo.info` and `TypeRef(_, Foo, Nil).normalize` are both `PolyType(List(T), Pair[T, T])` uncurry has been relying on an ugly hack to distinguish these cases based on ad-hoc kind inference without this distinction, the type alias's info (a type function) would be transformed to `PolyType(List(T), MethodType(Nil, Pair[T, T]))` anonymous type functions are being used more often (see #2741, #4017, #4079, #3443, #3106), which makes a proper treatment of PolyTypes more pressing change to type representation: PolyType(Nil, tp) -> NullaryMethodType(tp) PolyType(tps, tp) -> PolyType(tps, NullaryMethodType(tp)) (if the polytype denoted a polymorphic nullary method) PolyType(Nil, tp) is now invalid the kind of a PolyType is * iff its resulttype is a NullaryMethodType or a MethodType (i.e., it's a polymorphic value) in all other cases a PolyType now denotes a type constructor NullaryMethodType is eliminated during uncurry pickling: for backwards compatibility, a NullaryMethodType(tp) is still pickled as a PolyType(Nil, tp), unpickling rewrites pre-2.9-pickled PolyTypes according to the expected kind of the unpickled type (similar to what we used to do in uncurry) a pickled PolyType(Nil, restpe) is unpickled to NullaryMethodType(restpe) a pickled PolyType(tps, restpe) is unpickled to PolyType(tps, NullaryMethodType(restpe)) when the type is expected to have kind * the rewrite probably isn't complete, but was validated by compiling against the old scalacheck jar (which has plenty of polymorphic nullary methods) nevertheless, this commit includes a new scalacheck jar summary of the refactoring: * PolyType(List(), tp) or PolyType(Nil, tp) or PolyType(parms, tp) if params.isEmpty ==> NullaryMethodType(tp) * whenever there was a case PolyType(tps, tp) (irrespective of tps isEmpty), now need to consider the case PolyType(tps, NullaryMethodType(tp)); just add a case NullaryMethodType(tp), since usually: - there already is a PolyType case that recurses on the result type, - the polytype case applied to empty and non-empty type parameter lists alike * tp.resultType, where tp was assumed to be a PolyType that represents a polymorphic nullary method type before, tp == PolyType(tps, res), now tp == PolyType(tps, NullaryMethodType(res)) * got bitten again (last time was dependent-method types refactoring) by a TypeMap not being the identity when dropNonConstraintAnnotations is true (despite having an identity apply method). Since asSeenFrom is skipped when isTrivial, the annotations aren't dropped. The cps plugin relies on asSeenFrom dropping these annotations for trivial types though. Therefore, NullaryMethodType pretends to never be trivial. Better fix(?) in AsSeenFromMap: `if(tp.isTrivial) dropNonContraintAnnotations(tp) else ...` TODO: scalap and eclipse review by odersky, rytz
* Updated check file for namesdefault test.Iulian Dragos2011-01-191-2/+2
|
* Removed the probe for integers in spec-matrix.Iulian Dragos2011-01-192-2/+1
|
* Moved and removed a bunch of tests from pending.Paul Phillips2011-01-1915-111/+32
|
* What is, I think, the only possible solution to...Paul Phillips2011-01-182-0/+23
| | | | | | | What is, I think, the only possible solution to bug #4158 given the current ways of controlling implicits. Let's just be glad there's one instead of zero. Closes #4158, review by moors.
* Allow box(unbox) elimination for the Null type,...Iulian Dragos2011-01-185-8/+65710
| | | | | | Allow box(unbox) elimination for the Null type, plus testing that specialization tests do not box too much. review by extempore.
* second version of close #3649. no reviewLukas Rytz2011-01-182-1/+8
|
* test case close #3649. no reviewLukas Rytz2011-01-182-0/+5
|
* Disabled failing specialization test.Aleksandar Pokopec2011-01-172-3/+0
| | | | | No review.