aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #860 from dotty-staging/change-allow-ex-in-hkDmitry Petrashko2015-11-0210-94/+105
|\ | | | | Change allow ex in hk
| * Represent references to Scala2 inner classes as WithFixedSym typesMartin Odersky2015-10-252-16/+24
| | | | | | | | | | | | | | Reason: An inner Scala2 class might be shadowed by a same-named class in a subtype. In Dotty this is disallowed butin Scala 2 it is possible. For instance, math.Numeric and math.Ordering both have an inner class "Ops". Normal TypeRef types could not select the shadowed class in Ordering is the prefix is of type Numeric.
| * Make Lazy and Trait "From Start" flagsMartin Odersky2015-10-251-2/+4
| |
| * Make SuperAccessor and Scala2x "FromStart" flags.Martin Odersky2015-10-252-2/+4
| |
| * Remove redundant testsMartin Odersky2015-10-241-3/+1
| | | | | | | | isHK already does a dealias.
| * Don't drop $apply when eliminating existentials in unpicklerMartin Odersky2015-10-242-2/+2
| |
| * Revise typeParams to account for existential hk typesMartin Odersky2015-10-242-28/+37
| |
| * Allow existential types in hk typesMartin Odersky2015-10-244-43/+35
| |
* | Merge pull request #887 from dotty-staging/fix-#873odersky2015-11-022-15/+24
|\ \ | | | | | | Allow pattern matching anonymous functions of arity > 1
| * | Also handle SAM functions when adaptiing arity of case lambdas.Martin Odersky2015-10-301-14/+13
| | |
| * | Revert nullary function patchMartin Odersky2015-10-301-2/+2
| | | | | | | | | | | | Nullary functions are handled by scalac, and dotty should do the same.
| * | Fix case expansion for nullary functions.Martin Odersky2015-10-301-3/+3
| | | | | | | | | | | | Always expand to at least one parameter.
| * | Allow pattern matching anonymous functions of arity > 1Martin Odersky2015-10-302-6/+16
| | | | | | | | | | | | This is sepcified in Sec. 8.5 of the SLS. Fixes #873. Review by @smarter.
* | | Parentheses around a wildcard should not produce a lambdaMartin Odersky2015-11-021-0/+1
| | | | | | | | | | | | | | | | | | | | | `(_)` and `(_: T)` should not be converted to functions x => x (x: T) => x
* | | Merge pull request #894 from dotty-staging/check-singlethreadedDmitry Petrashko2015-10-312-0/+11
|\ \ \ | | | | | | | | Check that access to context base is singlethreaded.
| * | | Check that access to context base is singlethreaded.Martin Odersky2015-10-312-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | ContextBase is not intended to be threadsafe, We now test that indeed it is not shared by compileUnits calls operating on different threads.
* | | | Merge pull request #890 from dotty-staging/fix-#879Dmitry Petrashko2015-10-311-1/+1
|\ \ \ \ | |/ / / |/| | | Fix #879
| * | | Address reviewer commentsMartin Odersky2015-10-301-2/+2
| | | |
| * | | Fix #879Martin Odersky2015-10-302-3/+3
| | | | | | | | | | | | | | | | Don't insert a constructor call when typechecking Java classes.
* | | | Avoid printing expanded names when displaying type parameters.Martin Odersky2015-10-301-6/+5
|/ / / | | | | | | | | | | | | Differences can be observed when checking neg/variances.scala. Review and any necessary polishing by @smarter.
* | | Merge pull request #886 from dotty-staging/fix-#884Guillaume Martres2015-10-301-1/+1
|\ \ \ | |/ / |/| | Fix #884 - misdiagnosed ambiguous definition.
| * | Fix #884 - misdiagnosed ambiguous definition.Martin Odersky2015-10-291-1/+1
| | | | | | | | | | | | | | | Universal equality strikes again. Caused a bug in isDefinedInCurrentUnit.
* | | Merge pull request #882 from dotty-staging/fix/java-annots-posodersky2015-10-301-1/+1
|\ \ \ | | | | | | | | Set position on annotations parsed from Java
| * | | Set position on annotations parsed from JavaGuillaume Martres2015-10-291-1/+1
| | | | | | | | | | | | | | | | Fix a crash in Typer#assertPositioned
* | | | Make it easier to call the compiler using reflectionGuillaume Martres2015-10-291-1/+7
|/ / /
* | | Don't count suppressed errorsMartin Odersky2015-10-264-16/+21
| | | | | | | | | | | | If an error message was supressed to count it in the total.
* | | Keep separate chain of outer reporters for StoreReportersMartin Odersky2015-10-265-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | Used in rewritten `errorsReported` method. This fixes #866. The problem before was that `TyperState#trywithFallBack` temporarily updates the reporter, so crawling up the context chain to check for reporters with errors missed some reported errors, which triggered the assertion in `Tree#withType`.
* | | Shorten ctx.typerState.reporter to ctx.reporterMartin Odersky2015-10-266-6/+6
|/ / | | | | | | ... making use of method in `ctx`.
* | Fix hole in subtyping of modulesMartin Odersky2015-10-251-4/+9
| | | | | | | | | | We did not handle correctly the case exemplified by `range.scala`: A module this type, which is compared with a getter to the same module. Seen in the wild in scala.math.BigDecimal.
* | Readd `.widen` which was accidentally removed from the previous commitGuillaume Martres2015-10-251-1/+1
| |
* | Simplify logic in adaptMartin Odersky2015-10-251-10/+2
| |
* | Fix issue that prevented instantiating some tvars before implicit searchGuillaume Martres2015-10-251-1/+1
| |
* | Less eager tvar interpolation: wait until method calls are fully appliedGuillaume Martres2015-10-251-2/+11
| | | | | | | | Fix #738
* | Merge pull request #843 from dotty-staging/fix-#830odersky2015-10-251-3/+19
|\ \ | | | | | | Fix #830: Compiler hangs on implicit search with singleton &/|
| * | Only replace intersections of constants with NothingMartin Odersky2015-10-231-4/+10
| | |
| * | Fix #830: Compiler hangs on implicit search with singleton &/|Martin Odersky2015-10-221-3/+13
| | | | | | | | | | | | | | | | | | In fact we get a deep subtype recursion when compileing i830.scala. The problem goes away once we make use of the fact that the intersection of two singleton types which are not subtypes of each other is empty.
* | | Print stack traces before creating stub symbolsDmitry Petrashko2015-10-232-3/+8
| | |
* | | Revert "Workaround #840"Dmitry Petrashko2015-10-231-1/+1
| | | | | | | | | | | | This reverts commit acd7b9d31cd0a2fbc285921bdc5a7bdc9c1d2872.
* | | Workaround #840Dmitry Petrashko2015-10-231-1/+1
| |/ |/|
* | Merge pull request #832 from dotty-staging/fix-#815-hk-constructor-aliasDmitry Petrashko2015-10-231-1/+6
|\ \ | | | | | | Fix #815.
| * | Fix #815.Martin Odersky2015-10-201-1/+6
| | | | | | | | | | | | Need to handle hk-aliases specially in typedNew
* | | Merge pull request #842 from dotty-staging/fix-838Dmitry Petrashko2015-10-231-1/+1
|\ \ \ | | | | | | | | Fix #838. Fixes to non-local modules& static forwarders.
| * | | Fix DottyBackendInterafec.isStaticModuleClass.Dmitry Petrashko2015-10-221-1/+1
| | | | | | | | | | | | | | | | Used to pass wrong context.
* | | | Merge pull request #849 from dotty-staging/fix-#840Dmitry Petrashko2015-10-232-2/+2
|\ \ \ \ | | | | | | | | | | Fix #840
| * | | | Don't drop impure expressions when eliding isInstanceOf tests.Martin Odersky2015-10-231-1/+1
| | | | |
| * | | | Fix #840Martin Odersky2015-10-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem was that interceptTypeTestCasts was run at wrong phase. It saw after erasura a type of the form `x.Array$$T`. Before erasure that type is simply an alias of another type, but after erasure, Arraya$$T is defined to be a type alias of a Wildcard type.
* | | | | Address reviewer commentsMartin Odersky2015-10-221-5/+1
| | | | |
* | | | | Simplify treatment of merge conflictsMartin Odersky2015-10-221-37/+16
| | | | | | | | | | | | | | | | | | | | Now, we always throw a merge error. No more exceptions.
* | | | | Better handling of merge errorsMartin Odersky2015-10-223-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of picking one at random, throw a MergeError which might be caught later in mergeDenot. MergeDenot has enough info to pick a simulate Scala2 linarization if the prefix comes from Scala2, or it rethrows the exception so that it becomes a type error.
* | | | | Check for cyclic inheritance.Martin Odersky2015-10-221-1/+8
|/ / / /