aboutsummaryrefslogtreecommitdiff
path: root/library
Commit message (Collapse)AuthorAgeFilesLines
* Change enumeration members.Martin Odersky2017-04-041-11/+14
| | | | | | | | | | | | | Based on the discussion in #1970, enumeration objects now have three public members: - valueOf: Map[Int, E] - withName: Map[String, E] - values: Iterable[E] Also, the variance of case type parameters is now the same as in the corresponding type parameter of the enum class.
* Implement enum desugaringMartin Odersky2017-04-042-0/+26
|
* Drop special case around Function1Martin Odersky2017-03-081-0/+20
| | | | | | Now only Scala2 mode treats Function1's as implicit conversions. Instead we introduce a new subclass ImplicitConverter of Function1, instances of which are turned into implicit conversions.
* DottyPredef: remove dummy typeTag implicitGuillaume Martres2017-03-071-3/+0
| | | | This avoids a dependency on the scala-reflect jar
* Merge pull request #1921 from dotty-staging/fix-#1907odersky2017-02-081-3/+0
|\ | | | | Fix #1907: Improve error message
| * Handle Array classtags in the same way as othersMartin Odersky2017-02-011-3/+0
| | | | | | | | | | | | The previous implicit definition of arrayTag in DottyPredef priorities arrayTag over all other classtag searches, which led to surprising results in `i1907a.scala`.
* | Merge pull request #1881 from dotty-staging/add-structural-selectodersky2017-02-012-0/+81
|\ \ | |/ |/| Implement structural type member access
| * Change scheme to use SelectableMartin Odersky2017-01-073-18/+18
| | | | | | | | | | Use base types instead of implicits. This is more robust in the presence of type abstraction.
| * CleanupsMartin Odersky2017-01-051-1/+1
| |
| * Implement structural type member accessMartin Odersky2017-01-052-0/+81
| | | | | | | | New scheme for implementing structural type member access.
* | dotty.ShowTests: fix cyclic references involving implicit valuesGuillaume Martres2017-01-281-2/+2
|/ | | | | | | | As reportd by dotty (same thing with showShop): cyclic reference involving implicit value showCar This happens when the right hand-side of value showCar's definition involves an implicit search. To avoid the error, give value showCar an explicit type.
* Merge pull request #1761 from dotty-staging/topic/product-showFelix Mulder2016-12-142-0/+171
|\ | | | | [REPL] Add show capability to common types
| * Use Nil.type and None.type instead of superclassesFelix Mulder2016-12-011-4/+4
| |
| * Fix tasty bootstrapFelix Mulder2016-12-011-12/+12
| |
| * Add documentation to `Show`Felix Mulder2016-11-301-3/+10
| |
| * Get rid of null in evidence paramFelix Mulder2016-11-301-3/+6
| |
| * Optimize `Show[String]` instanceFelix Mulder2016-11-301-10/+14
| |
| * Get rid of nesting implicitsFelix Mulder2016-11-302-31/+25
| |
| * Fix `Option[Nothing]` showFelix Mulder2016-11-301-2/+1
| |
| * Add basic Show capabilityFelix Mulder2016-11-302-0/+164
| |
* | Adress reviewers commentsMartin Odersky2016-12-011-8/+0
| |
* | Add missing fileMartin Odersky2016-11-301-0/+17
| |
* | Create FunctionN types on demandMartin Odersky2016-11-298-163/+0
|/ | | | | | We know create FunctionN types on demand whenever their name is looked up in the scope of package `scala`. This obviates the need to predefine function traits 23 to 30.
* Move sjs, make sure that partest compiles everything in dirsFelix Mulder2016-11-221-0/+198
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-221-4/+3
|
* separate lib from compilerFelix Mulder2016-11-22162-0/+4761