| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Fix/overriding
|
| |
| |
| |
| |
| | |
Somehow this was lost in porting (or was this done somewhere else
in scalac?).
|
| | |
|
| |
| |
| |
| | |
`override` was not recognized at all on types.
|
| |
| |
| |
| |
| |
| |
| | |
(1) Type arguments now get a coordinate.
(2) They are labeled Override
(2) avoids having to special case TypeArgs in OverridingPairs.
|
| |
| |
| |
| |
| |
| |
| | |
These may raise real errors, so we cannot exclude them from
overriding pairs a priori. But we can avoid reporting any
errors if other override errors were reported previously for
the same class.
|
| |
| |
| |
| | |
to make it easier to understand.
|
| |
| |
| |
| |
| |
| |
| |
| | |
OverridingPairs had several bugs which caused pairs to be lost, which caused
missing overrides checks. Fixing OverridingPairs revealed several test failures
(and a problem in Synthetics generation which was fixed in the last commit).
Tests that became negative are all moved into neg/overrides.scala, and the
original versions in pos were fixed.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, two denotations with types => T and ()T could not
be merged, only their types could be, but then the denotation
would no longer be a SymDenotation. We now treat the two types
as equivalent so that it will select the symbol in a subclass.
This fixes a problem where, once overrding pairs are made to
work (see following commit), in core/Types we get an error "overriding
final method "hashCode".
|
|\ \
| | |
| | | |
Try to avoid overconstraining when comparing and/or types
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
See comments in eitherIsSubType for an explanation what the
problem is. Some test cases are in subtyping.scala
|
|\ \ \
| | | |
| | | | |
When printing uninstantiated type variables, include their bounds.
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
Moved pending tests that work into pos and neg.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
One test (t2613) required lifting a hard recursion limit in findMember
(used for debug only, will be removed in the future). The same test
also requires -Yno-deep-subtypes to be reset, so it's in pos_special
instead of pos.
|
|\ \ \ \
| |/ / /
|/| | | |
Add option to optimize the JVM for short-runnning applications
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Ideally, dotc should reuse a resident compiler and we should not fork sbt
for every task. Until this happens, this option is useful for
development. Fixes #222.
Usage:
$ sbt -DOshort=""
$ ./bin/dotc -Oshort foo.scala
|
|\ \ \ \
| | |_|/
| |/| | |
Rename productArity in pattern matcher to prodArity
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
productArity is a method defined in ProductN which is inherited from
case classes. It is possible that it will be usewd in the implementation
of pattern matching in the future. The previous implementation used
the same name to mean something else: Not the arity of the case class
itself but the arity of the pattern/type it represented.
Renaming to prodArity avoids the confusion.
|
|\ \ \ \
| |_|_|/
|/| | | |
Avoid forcing infos of some symbols in InfoTransforms
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ClassfileParser
Another bit to help avoid CyclicReferences when reading Java classes
|
| | | | |
|
| | |/
| |/|
| | |
| | |
| | | |
Provides the "mayChange" hook to exclude symbols from being completed
prior to a transformInfo.
|
|\ \ \
| | |/
| |/| |
Fixes problem exhibited by ensuring.scala
|
|/ /
| |
| |
| |
| | |
Need to account for the possibility that function
arguments are wrapped in braces.
|
|\ \
| |/
|/| |
Refactor/tree transform inits
|
| |
| |
| |
| |
| | |
State moved into local transforms which are allocated one per unit.
Thsi allows lambda lifters on different units to run in parallel.
|
| |
| |
| |
| | |
No global side effect on capturedVars anymore.
|
| |
| |
| |
| | |
Do not lead to temptation...
|
| |
| |
| |
| |
| |
| |
| |
| | |
Required some refactoring. Instead of transformSym we now
transform ValDefs as we prepare for them. The previous scheme
could not control directly whetrher transformSym or collectCaptured would
run first. Turns out that init ran before collectCaptured but
prepareForUnit did not, leading to test failures in pos/capturedvars.
|
| |
| |
| |
| |
| |
| |
| | |
This allows to move to a functional implementation later.
Only exception: CapturedVars still uses init() because it
contains a (dubious!) interaction with intialization and
transformSym. Looking at this next.
|
|/
|
|
| |
Should replace destructive inits.
|
|\
| |
| | |
Refactor/def trees
|
| | |
|
| |
| |
| |
| |
| | |
withMods should never be used to produce a typed tree, because typed
member defs get their modifiers from their symbols.
|
| |
| |
| |
| | |
Typed MemberDef trees now take the modifiers from their symbol's data.
|
| | |
|
|\ \
| | |
| | | |
Fix subtyping checks involving ThisType and PolyParam
|
| |/ |
|
|\ \
| |/
|/| |
Scopes: make sure every bucket of the hash table is used
|
|/
|
|
|
| |
Previously, one bucket was never used because in binary,
12*2^n - 1 = 101111...
|
|\
| |
| | |
Cleaning up interfaces.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previous implementation was confused about the meaning of interface (with default methods
or without?).
Now instead of Interface/JavaInterface we have
PureInterface - all members are abstract methods
NoInits - all members are methods
|
|/
|
|
| |
It functionality is now all implemented in ExplicitOuter.
|
|\
| |
| | |
Transform/mixin
|
| |
| |
| |
| |
| |
| |
| | |
Previously, there was a switch in SymDenotation#termRef to create a WithFixedSym ref
when after erasure. This was done to fix a broken test, but it's clearly incomplete.
The scheme is now replaced by one which always creates WithFixedSym Termrefs after
erasure.
|
| | |
|