summaryrefslogtreecommitdiff
path: root/src/compiler
Commit message (Collapse)AuthorAgeFilesLines
* Unbroke the build, sorry about that.Paul Phillips2009-08-312-2/+2
|
* Large Path/File/Directory checkin.Paul Phillips2009-08-304-52/+38
| | | | | | | | of the functionality that one can straightforwardly obtain from the capabilities of java.io.File in java 5, but written with an eye on the significantly more capable (if not significantly more appealing) nio2 API in openjdk.
* I hope to have fixed the optimized build.Iulian Dragos2009-08-282-3/+7
|
* A bunch of cleanups around Ordered & Ordering, ...Paul Phillips2009-08-281-38/+17
| | | | | | A bunch of cleanups around Ordered & Ordering, and provided PartialOrdering with the "partial" part it had never been given.
* added manifests to most parts of standard libra...Martin Odersky2009-08-279-47/+60
| | | | | | | added manifests to most parts of standard library which deal with arrays. One test is temporarily disabled, as it shows a deep problem with multi-dimensional arrays (which was present all along).
* Fix and test case for #2187 and its duplicate #...Paul Phillips2009-08-271-1/+2
| | | | | Fix and test case for #2187 and its duplicate #2192.
* Fix for #2240.Paul Phillips2009-08-271-1/+4
|
* Removed debugging printlnIulian Dragos2009-08-271-3/+1
|
* Fixed faulty constant propagation in the optimi...Iulian Dragos2009-08-261-5/+10
| | | | | Fixed faulty constant propagation in the optimizer (#2279)
* Some functionalization achieved while trying to...Paul Phillips2009-08-261-24/+20
| | | | | | Some functionalization achieved while trying to figure out if we can make reduceLeft work right on Stream.
* Fix for #2275 with tests.Miles Sabin2009-08-252-8/+16
|
* checked in missing file.Martin Odersky2009-08-241-0/+6
|
* Refined manifest checking in preparation for ar...Martin Odersky2009-08-243-29/+51
| | | | | | Refined manifest checking in preparation for arrays with manifests change.
* fixing bootstrapping problem wrt removing ident...Adriaan Moors2009-08-243-1/+4
| | | | | fixing bootstrapping problem wrt removing identity as an implicit
* Taking a little more advantage of some recent a...Paul Phillips2009-08-243-84/+91
| | | | | Taking a little more advantage of some recent abstractions.
* Generalized pattern matcher generated null test.Paul Phillips2009-08-232-1/+12
|
* Some minor logic simplifying falling out of equ...Paul Phillips2009-08-232-82/+61
| | | | | Some minor logic simplifying falling out of equality work.
* Fix and test case for #2241.Paul Phillips2009-08-231-1/+2
|
* A few straggler deprecations with straightforwa...Paul Phillips2009-08-227-18/+12
| | | | | A few straggler deprecations with straightforward enough resolutions.
* These might be the last of the deprecation warn...Paul Phillips2009-08-228-12/+14
| | | | | | | | | | | | | | | | These might be the last of the deprecation warnings I can obey in good conscience without doing some less robotic work first. Most of the remaining deprecations do any of: * deprecate in favor of non-existent function * deprecate in favor of function which doesn't quite work yet e.g. List.{ map2, forall2 } * deprecate in favor of function which blows the stack (Iterator.append says to use ++ but this ends poorly, see nsc's TreeSet) * deprecate in favor of a function which doesn't do the same thing e.g. List.-- says to use diff instead, but List(1,1) -- List(1) != List(1,1) diff List(1)
* Deprecation patrol continues patrolling.Paul Phillips2009-08-2226-50/+48
|
* Deprecation patrol.Paul Phillips2009-08-2212-37/+37
|
* Reverted r18344 as it is interacting badly with...Paul Phillips2009-08-211-18/+2
| | | | | Reverted r18344 as it is interacting badly with package objects.
* in the end had to disable conforms as view in t...Adriaan Moors2009-08-214-8/+7
| | | | | | | in the end had to disable conforms as view in tryImplicit (see comment in removeNames in NamesDefaults) fixed check file for viewtest added newTermName for conforms to StdNames, so removed the previous weirdness
* replaced the implicit `identity` coercion by `c...Adriaan Moors2009-08-215-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | replaced the implicit `identity` coercion by `conforms`, which can be used to encode generalised constraints the introduction of `conforms` revealed a bug in adaptToMember, which was inferring views while already inferring one, which gave rise to diverging implicits. Predef.identity is no longer special as far as the compiler is concerned. because conforms/identity was no longer prevented from being used as a view (which does not make sense, but preventing it shouldn't be necessary), removeNames in NamesDefaults suddenly didn't detect all ambiguities because it relied on tryTypedApply failing fixed by using an EmptyTree as an ambiguous argument instead of the argument, so failure is guaranteed fixed check file for t0590 new starr fixed the weirdest bug ever: don't know why, but can't change the total number of calls to newTermName in StdNames (so take away the one for "identity", give one back, doesn't matter where --> see "utterweirdness" at the end) the problem manifested itself by not finding Nil. This only happens during start up (when the scala/package.scala file hasn't been compiled yet), when Nil is required before List (because that would have forced Nil to be loaded).
* fixed build problemMartin Odersky2009-08-211-1/+1
|
* added partial manifests (now called manifests),...Martin Odersky2009-08-212-10/+16
| | | | | | added partial manifests (now called manifests), as opposed to FullManifests
* Revert several commits related to implicits/predefAdriaan Moors2009-08-215-23/+11
| | | | | | | | This reverts commits ce0ebb316c094814d72cc7dfcc7ac8e7c22f16c2 cd61aed60d71441308967bece13d87384a59d3e8 0becf263fe8f1dc74bc7277be5d2c6ed04047923
* improved previous fix for implicits and `conforms`Adriaan Moors2009-08-213-4/+15
| | | | | | | | | | | | | | because conforms/identity was no longer prevented from being used as a view (which does not make sense, but preventing it shouldn't be necessary), removeNames in NamesDefaults suddenly didn't detect all ambiguities because it relied on tryTypedApply failing fixed by using an EmptyTree as an ambiguous argument instead of the argument, so failure is guaranteed fixed check file for t0590 also reintroduced conforms, because we now have a new starr
* Gave spawn and future a default implicit to add...Paul Phillips2009-08-211-1/+1
| | | | | Gave spawn and future a default implicit to address ticket #2274.
* replaced the implicit `identity` coercion by `c...Adriaan Moors2009-08-204-10/+11
| | | | | | | | | replaced the implicit `identity` coercion by `conforms`, which can be used to encode generalised constraints the introduction of `conforms` revealed a bug in adaptToMember, which was inferring views while already inferring one, which gave rise to diverging implicits. Predef.identity is no longer special as far as the compiler is concerned.
* removed failing assertion.Martin Odersky2009-08-201-2/+2
|
* Put scala-library.jar back on the boot classpath.Paul Phillips2009-08-191-2/+5
|
* A bunch of cleanup on scriptrunner and fsc perf...Paul Phillips2009-08-186-319/+250
| | | | | | | A bunch of cleanup on scriptrunner and fsc performed in a quest to fix #1889. I understand why #1889 happens now but I believe fixing it is going to require adjusting the logic in SymbolLoaders.
* Fixed memory leaks for streams.Martin Odersky2009-08-184-54/+78
|
* fix for #2264Lukas Rytz2009-08-181-0/+3
|
* Fix for #2164.Paul Phillips2009-08-181-1/+7
|
* fixed typo #2263Lukas Rytz2009-08-171-1/+1
|
* Improvements in positions assigned to expresssi...Miles Sabin2009-08-163-5/+6
| | | | | | Improvements in positions assigned to expresssions using assignment operators.
* 1.Martin Odersky2009-08-164-40/+91
| | | | | 2. Relaxed bounds checking rules for existential types.
* Fixed #1560 (which was a typing hole, so some l...Martin Odersky2009-08-155-27/+61
| | | | | | Fixed #1560 (which was a typing hole, so some library classes had to be fixed)
* Blocks can now end in definitions.Martin Odersky2009-08-142-3/+4
|
* Merge branch 'ticket/513'Adriaan Moors2009-08-141-5/+10
|
* improving fix of #2246: optimised isDifferentTy...Adriaan Moors2009-08-141-37/+33
| | | | | | | | | | | | | | | | | | | improving fix of #2246: optimised isDifferentTypeConstructor removed typeConstructor(Boolean), using hasDifferentTypeSymbol instead switched to new subtyping algorithm (isSubType2) substitution now uses appliedType appliedType ensures Any/Nothing never have type args (so don't need to shortcut isSubArgs in firstTry when sym == AnyClass) appliedType ignores TypeVar's for now (must deal with them, since they arise during substitution) when tcpoly infer is integrated, TypeVar's also have type arguments and this case in appliedType must be updated maybe appliedType should become a member of Type (and rename to applyTypeArgs?)
* fixed #2251Adriaan Moors2009-08-131-1/+2
|
* fixed #2246 type checker looping on pos/contrib701Adriaan Moors2009-08-131-30/+42
| | | | | | | | | | | | | be more careful in isSubType for abstract types: type *constructors* must be different, not the whole type, which includes type arguments typeConstructor needed to instantiate the resulting type constructor with fresh type arguments (derived from type params), otherwise we end up in the higher-kinded case, and isDifferentTypeConstructor might try to compare polytypes with type params that have different (higher-order) arities --> this may still arise on other cases, though -- should fix this while working on #2210
* fix for 513: use deep ForeachTypeTraverser in d...Adriaan Moors2009-08-131-5/+2
| | | | | | fix for 513: use deep ForeachTypeTraverser in doTypeTraversal instead of shallow one test case+checkfile for #513
* Fix of #1722Martin Odersky2009-08-111-4/+13
|
* Fixed erroneous debug statement in erasure.Martin Odersky2009-08-101-1/+1
|
* Fixed #1642Martin Odersky2009-08-102-2/+13
|