Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't look at nesting for implicit resolution under Scala2 mode. | Martin Odersky | 2016-12-17 | 1 | -1/+6 |
| | |||||
* | Create implicit closures to math expected implicit functions | Martin Odersky | 2016-12-17 | 7 | -27/+64 |
| | | | | | When the expected type is an implicit function, create an implicit closure to match it. | ||||
* | Take nesting into account when ranking implicits | Martin Odersky | 2016-12-17 | 4 | -31/+59 |
| | | | | | | This will need a spec change. It's necessary in order not to confuse synthetic implicits with each other or with explicit ones in the environment. | ||||
* | Fix erasure of implicit functions | Martin Odersky | 2016-12-17 | 2 | -14/+16 |
| | | | | and check at runtime that it works | ||||
* | Add code to disable old implicit closure syntax in blocks | Martin Odersky | 2016-12-17 | 1 | -1/+11 |
| | | | | | | | This will no longer be supported. On the other hand, as long as the alternative is not yet legal in Scala2.x we cannot flag this as an error. So the migration warning/error and patch code is currently disabled. | ||||
* | Generalize syntax for implicit function values | Martin Odersky | 2016-12-17 | 2 | -43/+76 |
| | | | | | - allow more than one implicit binding - harmonize syntax in expressions and blocks | ||||
* | Cleanup of implicit modifiers scheme | Martin Odersky | 2016-12-17 | 4 | -18/+17 |
| | | | | | Implicit modifiers were quite irregular compared to the other ones. This commit does a cleanup. | ||||
* | Changes for matching and subtyping implicit methods | Martin Odersky | 2016-12-17 | 1 | -4/+4 |
| | | | | | | Implicitness is ignored for matching (otherwise apply in ImplicitFunction could not shadow apply in Function). And explicit trumps implicit in subtyping comparisons. | ||||
* | Make implicit functions have implicit function type | Martin Odersky | 2016-12-17 | 1 | -1/+1 |
| | |||||
* | Handle erasure of implicit function types | Martin Odersky | 2016-12-17 | 1 | -2/+9 |
| | |||||
* | Refactor function operations in Definitions | Martin Odersky | 2016-12-17 | 5 | -21/+32 |
| | | | | | | | | | Also: show implicit function types correctly. Also: refine applications of implicit funcitons - don't do it for closure trees - don't do it after typer. | ||||
* | Always insert apply for expressions of implicit function type | Martin Odersky | 2016-12-17 | 2 | -13/+37 |
| | |||||
* | Add syntax for implicit functions | Martin Odersky | 2016-12-17 | 3 | -7/+21 |
| | |||||
* | Add ImplicitFunctionN classes | Martin Odersky | 2016-12-17 | 3 | -14/+30 |
| | | | | These are always synthetic; generated on demand. | ||||
* | Merge pull request #1816 from dotty-staging/fix-#1799 | odersky | 2016-12-17 | 1 | -1/+1 |
|\ | | | | | Fix #1799: Make compilation of FunctionN traits possible. | ||||
| * | Fix #1799: Make compilation of FunctionN traits possible. | Martin Odersky | 2016-12-16 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1811 from dotty-staging/fix-1810 | odersky | 2016-12-16 | 1 | -1/+1 |
|\ \ | |/ |/| | Fix #1810 LazyVals should use changeOwnerAfter. | ||||
| * | Fix #1810 LazyVals should use changeOwnerAfter. | Dmitry Petrashko | 2016-12-15 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #1763 from dotty-staging/fix/annotations | Dmitry Petrashko | 2016-12-16 | 3 | -22/+41 |
|\ \ | | | | | | | Fix emission of annotations | ||||
| * | | Fix #1741: sbt.ExtractAPI: extract annotations | Guillaume Martres | 2016-12-02 | 1 | -6/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary for correct incremental recompilation but is also used by sbt to find tests to run (for junit they should be annotated @org.junit.Test). I added an sbt scripted test to verify that JUnit now works, to run it: $ sbt > scripted discovery/test-discovery | ||||
| * | | Fix transformation of inline body annotations | Guillaume Martres | 2016-11-30 | 1 | -3/+7 |
| | | | | | | | | | | | | | | | Previously we replaced them by ConcreteAnnotation so they became regular annotations and could be emitted in some cases. They need to keep being BodyAnnotation. | ||||
| * | | Fix visibility of annotations | Guillaume Martres | 2016-11-30 | 1 | -11/+9 |
| | | | | | | | | | | | | | | | | | | `isRuntimeVisible` and `retentionPolicyOf` had two different ways to get the retention policy of an annotation and they were both wrong. Fix retentionPolicyOf` and use it in `isRuntimeVisible` | ||||
| * | | Fix annotations never being emitted | Guillaume Martres | 2016-11-30 | 1 | -2/+1 |
| | | | |||||
* | | | Merge pull request #1813 from dotty-staging/fix-#1806 | Dmitry Petrashko | 2016-12-16 | 2 | -1/+5 |
|\ \ \ | | | | | | | | | Fix #1806: Define outer accessors at the right phase | ||||
| * | | | Fix #1806: Define outer accessors at the right phase | Martin Odersky | 2016-12-16 | 2 | -1/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some outer accessors were defined at phase explicitOuter, but were entered into the scope of their enclosing class only at phase explicitOuter + 1. This turned them to stale symbols when trying to access them at a later run, because at their initially valid phase they were not found as members of their owner. | ||||
* | | | | Merge pull request #1801 from dotty-staging/fix-#1790 | Dmitry Petrashko | 2016-12-16 | 6 | -56/+94 |
|\| | | | | | | | | | | | Fix #1790: Change by-name pattern matching. | ||||
| * | | | Implement new rules for name-based pattern matching | Martin Odersky | 2016-12-15 | 5 | -26/+42 |
| | | | | | | | | | | | | | | | | This implements the rules laid down in #1805. | ||||
| * | | | Change by-name pattern matching. | Martin Odersky | 2016-12-14 | 4 | -53/+75 |
| | | | | | | | | | | | | | | | | New implementation following the scheme outlined in #1790. | ||||
* | | | | Merge pull request #1785 from dotty-staging/fix-#1784 | odersky | 2016-12-15 | 15 | -54/+65 |
|\ \ \ \ | | | | | | | | | | | Fix #1784: allow to omit types for local implicit vals | ||||
| * | | | | Add CyclicImplicitVal error to messages (reverted from commit ↵ | Martin Odersky | 2016-12-15 | 2 | -13/+4 |
| | | | | | | | | | | | | | | | | | | | | 559e49317912ce52c51e295346cebcafbb69462d) | ||||
| * | | | | Add CyclicImplicitVal error to messages | Felix Mulder | 2016-12-13 | 2 | -4/+13 |
| | | | | | |||||
| * | | | | Drop "Dotty deviation" messages that are no longer applicable. | Martin Odersky | 2016-12-12 | 3 | -3/+3 |
| | | | | | |||||
| * | | | | Better diagnosis for cyclic references caused by implicit search | Martin Odersky | 2016-12-12 | 2 | -2/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we now allow to drop the explicit type of a local implicit val it can happen that this causes a cyclic reference, namely when the typechecking of the right-hand side involves an implicit search. It's unpractical and fragile to avoid this. Instead we give now a nice error message explaining the problem and how to fix it in source code. | ||||
| * | | | | Drop explicit types for local implicit vals | Martin Odersky | 2016-12-12 | 13 | -49/+49 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Drop explicit types for local implicit vals of type Context and Position. Exercises the functionality and shortens the code. | ||||
| * | | | | Fix #1784: allow to omit types for local implicit vals | Martin Odersky | 2016-12-12 | 1 | -3/+9 |
| | | | | | |||||
* | | | | | Merge pull request #1682 from dotty-staging/vclass | odersky | 2016-12-15 | 7 | -48/+65 |
|\ \ \ \ \ | | | | | | | | | | | | | Fix checks related to value classes | ||||
| * | | | | | renable checking for TreeChecker | liu fengyun | 2016-11-24 | 1 | -1/+4 |
| | | | | | | |||||
| * | | | | | don't recheck in -Ycheck | liu fengyun | 2016-11-24 | 4 | -42/+48 |
| | | | | | | |||||
| * | | | | | fix #1642: disallow value classe wrapping value class | liu fengyun | 2016-11-24 | 5 | -12/+16 |
| | | | | | | |||||
| * | | | | | fix #1670: move the check of value class to typer | liu fengyun | 2016-11-24 | 2 | -2/+6 |
| | | | | | | |||||
* | | | | | | Merge pull request #1780 from dotty-staging/fix-i1779 | odersky | 2016-12-15 | 2 | -6/+10 |
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | fix #1779: support $_ and $_id in interpolated string | ||||
| * | | | | | only allow $_ in patterns | liu fengyun | 2016-12-12 | 1 | -6/+6 |
| | | | | | | |||||
| * | | | | | fix #1779: support $_ and $_id in interpolated string | liu fengyun | 2016-12-08 | 2 | -1/+5 |
| | | | | | | |||||
* | | | | | | Merge pull request #1761 from dotty-staging/topic/product-show | Felix Mulder | 2016-12-14 | 1 | -3/+32 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | [REPL] Add show capability to common types | ||||
| * | | | | | | Add comment regarding prettification | Felix Mulder | 2016-12-01 | 1 | -0/+17 |
| | | | | | | | |||||
| * | | | | | | Fix literal type printing | Felix Mulder | 2016-12-01 | 1 | -0/+3 |
| | | | | | | | |||||
| * | | | | | | Get rid of nesting implicits | Felix Mulder | 2016-11-30 | 1 | -12/+1 |
| | | | | | | | |||||
| * | | | | | | Print List and Map abbreviated | Felix Mulder | 2016-11-30 | 1 | -1/+8 |
| | | | | | | | |||||
| * | | | | | | Make repl use show instances where possible | Felix Mulder | 2016-11-30 | 1 | -2/+15 |
| | | | | | | | |||||
* | | | | | | | Fix #1786: support use package object in fun call | liu fengyun | 2016-12-13 | 1 | -1/+1 |
| |_|_|_|_|/ |/| | | | | |