| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
Don't box class parameters when passed to the super constructor, from
specialized subclasses.
|
| |
|
|
|
|
|
|
| |
Added an overridable setUp method that is called prior to each
benchmarking (but whose execution time is not measured).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
@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
|
|
|
|
|
| |
no review
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Discovered ListMap.++ returns a Map instead of a ListMap. Does
preserving binary compatibility mean we can't fix this sort of thing?
Fixing for now, inquiring via: review by odersky.
|
|
|
|
|
|
|
|
| |
- building continuation plugin
- building and replacing fjgb, msil and forkjoin
- building and replacing starr
- layer cleaning tasks
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
[scaladoc] Merges Petr's change to Scaladoc from the Colladoc branch:
bugfixes, improvements and refactorings that make it possible to extends
Scaladoc into Colladoc.
- Layout of index uses jQuery UI panel instead of frameset.
- Search boxes have correct width on Firefox.
- Scaladoc models the original, untransformed source.
- Various internal bugfixes & refactorings.
Review by dubochet.
|
|
|
|
|
|
|
| |
the added flexibility'll cost ya one ClassManifest
review by phaller
|
|
|
|
|
| |
no review
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
use arraycopy not Array.copy in Arraybuffer.sizeHint. close #3766,
#3767. no review.
|
|
|
|
|
|
|
|
| |
Revert ArrayBuffer's sizeHint as I had a typo anyway and it needs more
thinking. see #3766, see #3767.
This reverts commit bf87118d701df2313a9f680e327ce066765c10d3.
|
|
|
|
|
|
| |
use arraycopy instead of Array.copy in ArrayBuffer's sizeHint. close
#3766, review by extempore.
|
| |
|
|
|
|
|
| |
remove space from sbt's build/x/ classes directory. no review.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Since r22186 scripts wait for all non-daemon threads to exit before
the script will exit (not doing so was the cause of several other
bugs involving early script termination) but this means we must be
careful not to introduce unnecessary non-daemon threads in the script
infrastructure. Two such sources (now fixed) were the shutdown hook
which deletes temporary files and the stream consumers used by Process.
Closes #3678, review by harrah.
|
|
|
|
|
|
|
|
| |
material changes are a) deferring to the target object's toString
method on custom collections, so now only built-in collections receive
special treatment, and b) guarding against runaways and inappropriate
exceptions, falling back on toString. Closes #3710, Review by prokopec.
|
|
|
|
|
|
|
| |
Martin's review indicated this needs a better solution.
This reverts commit 6a62875b08f8a2c80aefee313f86429b2793ee2e.
|
|
|
|
|
|
|
|
| |
(I verified the added access check does not increase time for ant
test-opt)
review by odersky
|
|
|
|
|
|
|
|
| |
TODO: clean this up, introduce datatypes to denote kinds, split
checkKindBounds into kind inference and subkind checking
review by odersky
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
for MSIL: Previous changesets were applied more-or-less incrementally to
scala-msil, this changeset brings them all together to scala trunk. Next
stop will be supporting CLR valuetypes (another big one). Afterwards
(once emitted .NET bytecode passes peverify) changesets will become more
manageable in size. Well, no, there's generics coming. But believe me,
soon MSIL changesets will get smaller in size.
|
|
|
|
|
|
| |
[Scaladoc] Fixes a bug in defaultValues display ('new A' now creates a
link on A). Review by dubochet
|
|
|
|
|
|
|
|
|
|
|
|
| |
[Scaladoc] Improve the documentation of primary constructor. Adds a
@constructor for commenting the primary constructor. It also adds some
comments for the primary constructor (@params, @deprecated) which
are initialised in the class comment. Members that come from primary
constructor parameters (val parameters or parameters of a case class)
are listed as members with the comment given using the @param tag
(closes #254, closes #577). Case class signature now begins by 'case
class' instead of 'class'. Review by dubochet
|
|
|
|
|
|
| |
Fixed type soundness problem someone raised on hackers news. Test in
override.scala. Review by moors.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
gives fewer insensible warnings about actually sensible things, etc.
Large test case with 30 warnings elicited.
Closes #282 (again), no review.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 the same brush. No
review.
|