summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* partial fix for see #3772.Lukas Rytz2010-08-271-0/+5
| | | | | | | | | | | | {{{ scala> def g { case class C(); object C; } <console>:5: error: C is already defined as (compiler-generated) case class companion object C def g { case class C(); object C; } ^ }}} review by odersky
* this should fix our achy breaky build. no reviewAdriaan Moors2010-08-262-2/+4
|
* Closes #3497.Iulian Dragos2010-08-261-0/+16
|
* Closes #3776. No review.Martin Odersky2010-08-242-0/+13
|
* new tests. No review.Martin Odersky2010-08-242-0/+13
|
* Fix and test case for broken linked lists, cont...Paul Phillips2010-08-231-0/+100
| | | | | | Fix and test case for broken linked lists, contributed by Lucien Pereira. Closes #3361, no review.
* in refchecks, visit the qualifier of irrefutabl...Lukas Rytz2010-08-233-0/+10
| | | | | | in refchecks, visit the qualifier of irrefutable filters. close #3773. review by moors.
* test for see #3769. no review.Lukas Rytz2010-08-232-0/+13
|
* test for #3667. no reviewLukas Rytz2010-08-231-0/+8
|
* forgot to update check file after renaming tests.Adriaan Moors2010-08-212-4/+4
|
* closes 2462. better implicit error messages.Adriaan Moors2010-08-204-0/+33
| | | | | | | | | | | | | | | | | | @implicitNotFound(msg="Custom error message that may refer to type parameters ${T} and ${U}") trait Constraint[T, U] whenever an implicit argument of type Constraint[A, B] cannot be found, the custom error message will be used, where the type arguments are interpolated in the obvious way note: if the msg in the annotation references non-existing type params, a warning is emitted the patch also cleans up annotation argument retrieval (moved it to AnnotationInfo from Symbol) review by odersky
* closes #3575.Adriaan Moors2010-08-203-0/+14
| | | | | | | | | | cloneSymbol now preserves privateWithin -- need to reset it explicitly now when before it was assumed to be not to be carried over rewrote accessibility in overriding checks so they're more readable, but hopefully with same semantics review by odersky
* closes #2788.Adriaan Moors2010-08-192-0/+4
| | | | | | | the added flexibility'll cost ya one ClassManifest review by phaller
* closes #3777.Adriaan Moors2010-08-191-0/+7
| | | | | no review
* better fix for see #3667.Lukas Rytz2010-08-172-2/+0
|
* Revert "closes #3757.Adriaan Moors2010-08-143-15/+0
| | | | | | | Martin's review indicated this needs a better solution. This reverts commit 6a62875b08f8a2c80aefee313f86429b2793ee2e.
* closes #3757.Adriaan Moors2010-08-143-0/+15
| | | | | | | | (I verified the added access check does not increase time for ant test-opt) review by odersky
* closes #3691.Adriaan Moors2010-08-142-0/+27
| | | | | | | | TODO: clean this up, introduce datatypes to denote kinds, split checkKindBounds into kind inference and subkind checking review by odersky
* closes #3663.Adriaan Moors2010-08-133-0/+23
| | | | | | | | | | | | | | namers wasn't setting privateWithin on java-defined variables (btw, ) shouldn't clone carry over privateWithin? better treatment of linked ) class access boundary (only check for access within linked class if it ) actually exists ) would have liked more control for the test case: only javac should compile the java file, then scalac should compile the scala file and fail review by odersky
* closes #3419: test filesAdriaan Moors2010-08-134-8/+17
| | | | | | | | | | | | omit check that wouldn't work with separate compilation, not needed anymore because compiler has become more robust the actual fix was committed as part of r22512, see #3374 also see #3512 no review
* Fixed type soundness problem someone raised on ...Martin Odersky2010-08-123-0/+29
| | | | | | Fixed type soundness problem someone raised on hackers news. Test in override.scala. Review by moors.
* different approach to manifests of type par...Adriaan Moors2010-08-101-0/+10
| | | | | | | | | different approach to manifests of type parameters: before, ambiguity was prevented by leaving type inference failures (Nothing was inferred) in the expression that needs an implicit manifest -- we now put these back in undetparams (maybe they will be inferred) and when we need to produce a manifest for an undetermined parameter (it ended up not being inferred), we assume it will get instantiated to Nothing (but for now don't actually reflect that in the SearchResult, as instantiate should take care of that anyway) see test file for use case that works with this new scheme, but did not work before: the eager instantiation of type params to Nothing before implicit search even got started would indeed prevent ambiguity -- unfortunately it also ruled out valid code like this (where the type parameter is inferred successfully by the time the manifest is needed) review by odersky
* closes #3676: cycle detection logic in BaseType...Adriaan Moors2010-08-101-0/+5
| | | | | | | | | | | closes #3676: cycle detection logic in BaseTypeSeq's should not overwrite elements in the BTS for cycle detection as these markers may be witnessed by callbacks in mergePrefixAndArgs now using a mutable bitset to keep track of which computations are pending -- benchmarked for speed, memory consumption not checked review by odersky
* fix an msil bug (code gen of exception handlers).Lukas Rytz2010-08-102-0/+19
|
* An overhaul of checkSensible.Paul Phillips2010-08-103-62/+160
| | | | | | | | gives fewer insensible warnings about actually sensible things, etc. Large test case with 30 warnings elicited. Closes #282 (again), no review.
* close #7226.Lukas Rytz2010-08-092-0/+10
|
* closes #3582: typedTypeDef needs to run in a ne...Adriaan Moors2010-08-092-0/+17
| | | | | | | | | | | | | | | | | closes #3582: typedTypeDef needs to run in a new typer for TypeDefs with type parameters this was honored when typedTypeDef was called by typed1, but other callers did not this would cause higher-order type parameters to be re-entered in the scope of a method or a class (by the way, should we recycle scopes for higher-order type params? now new scopes are created, symbols entered, and tree's symbols updated) changed some spurious vars to vals review by odersky
* Modified r22702 to avoid tarring overloads with...Paul Phillips2010-08-071-0/+13
| | | | | | Modified r22702 to avoid tarring overloads with the same brush. No review.
* Disallowed super.XX calls to Any methods which ...Paul Phillips2010-08-073-7/+36
| | | | | | | | | | Disallowed super.XX calls to Any methods which are presently either crashing the compiler (isInstanceOf) or leading to runtime failure (== and !=) in addition to one which was being rewritten to a this call but makes more sense disallowed like the others (##). Closes #3736, review by odersky.
* pending test for #3663Lukas Rytz2010-08-062-0/+28
|
* close #2799.Lukas Rytz2010-08-062-0/+2
|
* close #3403.Lukas Rytz2010-08-062-0/+6
|
* fixes names/defaults when using :_* for specify...Lukas Rytz2010-08-052-0/+27
| | | | | | fixes names/defaults when using :_* for specifying repeated parameters. close #3697, no review.
* close #3667.Lukas Rytz2010-08-054-0/+50
| | | | | | | | | | | | | | | | | | | | | | | | | scala> def ser(o: AnyRef) = new java.io.ObjectOutputStream(new java.io.ByteArrayOutputStream()).writeObject(o) ser: (o: AnyRef)Unit scala> @serializable class Outer { | case class Inner(x: Int) | } defined class Outer scala> val o = new Outer o: Outer = Outer@34469729 scala> ser(new o.Inner(1)) scala> o.Inner // initialize the Inner$module field of o res1: o.Inner.type = Inner scala> ser(new o.Inner(1)) java.io.NotSerializableException: Outer$Inner$ review by extempore.
* fix the failing test. review by dubochet.Lukas Rytz2010-08-051-1/+1
|
* close #3685. review by moors.Lukas Rytz2010-08-052-1/+74
|
* added @deprecatedName annotation, allowing to d...Lukas Rytz2010-08-037-5/+66
| | | | | | added @deprecatedName annotation, allowing to deprecate parameter names. review by prokopec.
* Parse ordering issue prevented passing properti...Paul Phillips2010-08-032-0/+3
| | | | | | | Parse ordering issue prevented passing properties containing a :. There is a test case included, but note that partest passes it with or without the patch: see ticket #3712. Closes #3495, no review.
* Fixes priority queues and makes them iterables ...Aleksandar Pokopec2010-07-291-346/+337
| | | | | Fixes priority queues and makes them iterables now.
* Fix for last commit.Aleksandar Pokopec2010-07-281-1/+1
|
* Added merge function to HashTrie.merge. No review.Aleksandar Pokopec2010-07-281-0/+36
|
* Minor tweaks. No review.Aleksandar Pokopec2010-07-271-1/+1
|
* Refactored benchmarks.Aleksandar Pokopec2010-07-2619-58/+114
|
* new test files.Martin Odersky2010-07-195-0/+94
|
* Moved the burden of forgivingness for string sl...Paul Phillips2010-07-141-0/+19
| | | | | | Moved the burden of forgivingness for string slices into StringOps where it belongs. Review by odersky.
* close #3648 (again).Lukas Rytz2010-07-134-16/+13
|
* Closes #3653.Adriaan Moors2010-07-122-0/+11
| | | | | | | | | | no review Author: Mark Harrah <dmharrah@gmail.com> Date: Thu Jul 8 10:30:57 2010 -0400 Source: http://github.com/harrah/scala-starrless/commit/0c7759c95b47cebc6d9fa77cefd34ef638e2706e Reviewer: moors
* Fixed buggy test case. Closes #3551. No review.Philipp Haller2010-07-121-3/+9
|
* Added test case for see #3628 in pending.Philipp Haller2010-07-122-0/+14
|
* Added test case for see #3620.Philipp Haller2010-07-121-0/+73
|