aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make sure lazy accessors in traits are not private.Martin Odersky2016-03-103-2/+15
| | | | Fixes #1140. Review by @DarkDimius or @smarter.
* Merge pull request #1162 from dotty-staging/vc-companionsGuillaume Martres2016-03-091-1/+0
|\ | | | | remove println from FirstTransform
| * remove println from FirstTransformVladimirNik2016-03-091-1/+0
| |
* | Merge pull request #1161 from andreaTP/fixInterfacesPublishLocalDmitry Petrashko2016-03-091-1/+3
|\ \ | |/ |/| Removed invalid javacOptions in (Compile, doc)
| * Removed invalid javacOptions in (Compile, doc)andreaTP2016-03-091-1/+3
| |
* | Merge pull request #1153 from dotty-staging/vc-companionsodersky2016-03-097-17/+58
|\ \ | |/ |/| Fix for separate compilation with value class issue (#1137)
| * Fix for separate compilation with value class issue (missing companion ↵VladimirNik2016-03-077-17/+58
| | | | | | | | object - #1137)
* | Merge pull request #1155 from dotty-staging/staticodersky2016-03-099-3/+164
|\ \ | | | | | | Implement @static sip.
| * | Replace addAnnotation(annotation) by addAnnotation(Annotation(annotation))Dmitry Petrashko2016-03-083-7/+7
| | | | | | | | | | | | as asked in https://github.com/lampepfl/dotty/pull/1155/files#r55355664
| * | CheckStatic: do not eliminate non-pure expressions.Dmitry Petrashko2016-03-081-4/+15
| | | | | | | | | | | | | | | | | | Implemented by checking that tree is allowed to access the static member and all the members on the path to it. Needed as typer has a tendency to desugar calls into series of selections&calls to This.
| * | Fix Identation in tpd.Dmitry Petrashko2016-03-081-1/+1
| | |
| * | Fix add beanSetter annotation to @staticDmitry Petrashko2016-03-071-1/+1
| | |
| * | Add test that was used to see if @static works.Dmitry Petrashko2016-03-071-0/+40
| | |
| * | LazyVals: make all fields added to companions static.Dmitry Petrashko2016-03-071-1/+5
| | |
| * | Implement @static sip.Dmitry Petrashko2016-03-077-2/+108
| | | | | | | | | | | | | | | | | | | | | | | | This pull request implements most of machinery needed for https://github.com/scala/scala.github.com/pull/491 Only 3-rd check is not implemented by this commit. I propose to get this in faster to fix #1149
* | | Merge pull request #1156 from dotty-staging/fix-#1052odersky2016-03-082-11/+21
|\ \ \ | |_|/ |/| | Allow successive opening comments.
| * | Allow successive opening comments.Martin Odersky2016-03-072-11/+21
|/ / | | | | | | Fixes #1052.
* | Merge pull request #1142 from dotty-staging/fix/implicit-ctxodersky2016-03-072-6/+4
|\ \ | | | | | | Do the implicit search shadowing check in the correct context
| * | Allow adding typevars to an uncommitable constraint setGuillaume Martres2016-03-041-4/+2
| | | | | | | | | | | | We triggered this assert after the fix in the previous commit.
| * | Do the implicit search shadowing check in the correct contextGuillaume Martres2016-03-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes a very sneaky bug, the following code: ``` lazy val shadowing = typed(untpd.Ident(ref.name) withPos pos.toSynthetic, funProto) (nestedContext.addMode(Mode.ImplicitShadowing).setExploreTyperState) ``` is parsed by scalac as: ``` lazy val shadowing = typed(untpd.Ident(ref.name) withPos pos.toSynthetic, funProto); (nestedContext.addMode(Mode.ImplicitShadowing).setExploreTyperState); ``` So we don't actually use the nested context in `typed`, instead we end up implicitly using `ctx`!
* | | Merge pull request #1147 from sjrd/fix-non-jvm-sam-non-applyodersky2016-03-073-1/+14
|\ \ \ | | | | | | | | Fix #1146: Fix bug of ExpandSAMs with non-apply SAM methods.
| * | | Fix #1146: Fix bug of ExpandSAMs with non-apply SAM methods.Sébastien Doeraene2016-03-073-1/+14
| | |/ | |/| | | | | | | | | | | | | When expanding a SAM, ExpandSAMs always used the name `apply` for the generated forwarder, instead of the name of the method which is abstract in the SAM type. This commit fixes this issue.
* | | Merge pull request #1150 from dotty-staging/change-lambdalift-fasttrackodersky2016-03-076-92/+312
|\ \ \ | |/ / |/| | Change lambdalift - fasttrack
| * | Address reviewer comments.Martin Odersky2016-03-071-5/+2
| | |
| * | Drop accidentally left-in inhibitor switchMartin Odersky2016-03-031-1/+1
| | |
| * | Cleanup lambda liftMartin Odersky2016-03-031-19/+26
| | | | | | | | | | | | | | | | | | | | | 1. Make clearer what markFree is supposed to do and get rid of `propagated` mode bit. 2. Harden copyParams so that we make sure corresponding parameters and fields are copied.
| * | Fix call propagation from constructor to classMartin Odersky2016-03-024-20/+20
| | |
| * | LambdaLift redesignMartin Odersky2016-03-024-49/+102
| | | | | | | | | | | | | | | | | | | | | Simplifications in order to avoid the freqent special casing of constructors and prepare the way for proper handling of trait constructors (which cause problems; see pending/pos/llift.scala.
| * | Simplification: get rid of local trait methodsMartin Odersky2016-03-021-24/+10
| | |
| * | Handle local traits in lambda liftMartin Odersky2016-03-013-33/+199
| | |
| * | Fix outer paths generated during lambda lift from constructors.Martin Odersky2016-03-012-3/+9
| | | | | | | | | | | | | | | | | | If lambda lift needs to create an outer path from a constructor, the path needs to start from the $outer parameter of the constructor, not the this of the enclosing class, which is not yet available.
| * | Fix a loophole where outer paths are missing at phase lambda lift.Martin Odersky2016-03-011-2/+7
| | | | | | | | | | | | Test will come in llift.scala.
* | | Merge pull request #1126 from sjrd/scalajsDmitry Petrashko2016-03-0418-11/+2221
|\ \ \ | | | | | | | | Initial infrastructure and hello world for the Scala.js back-end.
| * | | Add the sources of scalajs-ir to dotty instead of its binaries.Sébastien Doeraene2016-03-041-2/+32
| | | | | | | | | | | | | | | | | | | | This guarantees that we can bootstrap dotty without depending on the binaries of scalajs-ir compiled by another Scala compiler.
| * | | Store the JSDefinitions in a custom platform SJSPlatform.Sébastien Doeraene2016-03-016-21/+45
| | | | | | | | | | | | | | | | | | | | | | | | This required the ability to instantiate a different `Platform` depending on settings, which, in turn, required to defer the initialization of `ContextBase.platform`.
| * | | Initial infrastructure and hello world for the Scala.js back-end.Sébastien Doeraene2016-03-0112-1/+2152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Scala.js back-end can be enabled with the `-scalajs` command-line option. Currently, it adds one phase to the pipeline, which emits .sjsir files from trees. A sandbox project `sjsSandbox`, in `sandbox/scalajs/`, can be used to easily test Scala.js compilation. One can run the `main()` method of the `hello.world` object with > sjsSandbox/run The back-end only contains the bare mimimum to compile the hello world application in the sandbox. Anything else will blow up (for example, primitive method calls). It is a work-in-progress.
| * | | Mark concrete vals mixed in from Scala2 traits as mutable.Sébastien Doeraene2016-03-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a concrete val is mixed in from a Scala2 trait, a setter is generated, which is called by the `$init$` method. Since the assignment in this setter is not done in the constructor, it is nonsensical for the field to be immutable. This commit sets the Mutable flag on such fields. It only applies for vals coming from Scala2 traits. vals coming from Dotty traits are kept immutable.
| * | | In LinkScala2ImplClass, disregard signatures when looking for constructor.Martin Odersky2016-03-011-4/+8
| | |/ | |/| | | | | | | | | | Dotty treats trait and class constructors as returning the class. But scalac uses Unit for the return type of trait init methods.
* | | Merge pull request #1122 from dotty-staging/neg-lines-2odersky2016-03-0315-139/+101
|\ \ \ | | | | | | | | Neg tests: remove xerror parameter from neg tests (#1110)
| * | | Neg tests: change val computeFilePathsAndExpErrors to defVladimirNik2016-03-031-3/+3
| | | |
| * | | Neg tests: remove negTest flag; neg tests are binded to neg directoryVladimirNik2016-03-034-55/+57
| | | |
| * | | Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-0313-133/+93
|/ / /
* | | Merge pull request #1129 from dotty-staging/rename/AllFlagsodersky2016-03-032-2/+2
|\ \ \ | | | | | | | | Rename AllFlags to AnyFlags
| * | | Rename AllFlags to AnyFlagsGuillaume Martres2016-03-012-2/+2
| |/ / | | | | | | | | | | | | | | | `membersBasedOnFlags(requiredFlags = AnyFlags, excludedFlags = ...)` is easier to understand than `membersBasedOnFlags(requiredFlags = AllFlags, excludedFlags = ...)`
* | | Merge pull request #1139 from dotty-staging/change-needs-companionDmitry Petrashko2016-03-033-3/+4
|\ \ \ | | | | | | | | Change isCompanionNeeded
| * | | Speed up LazyVals isCompanion neededMartin Odersky2016-03-032-2/+2
| | | | | | | | | | | | | | | | Brings time to compile stdlib down from 185s to 44s.
| * | | Print phases with time they needMartin Odersky2016-03-031-1/+2
| | |/ | |/| | | | | | | | | | Print a phase after it has run, together with the time it needs. Useful to locate performance problems in transforms.
* | | Merge pull request #1111 from dotty-staging/fix-#1099Dmitry Petrashko2016-03-0216-211/+171
|\ \ \ | |_|/ |/| | Special case pattern matching against abstract types with class tags
| * | Remove bogus test on rebasingMartin Odersky2016-02-201-38/+0
| | |
| * | Search for classtag only during typer.Martin Odersky2016-02-201-1/+1
| | | | | | | | | | | | We do not want to do implicit search during tree checking.