Skip to content

Commit dc8c708

Browse files
committed
Fix typo in doc page and update MimaFilters, pickling excludes
1 parent 7d754d6 commit dc8c708

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

compiler/test/dotc/pos-test-pickling.blacklist

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ i15525.scala
120120

121121
# alias types at different levels of dereferencing
122122
parsercombinators-givens.scala
123+
parsercombinators-givens-2.scala
123124
parsercombinators-ctx-bounds.scala
124125
parsercombinators-this.scala
125126
parsercombinators-arrow.scala

docs/_docs/reference/experimental/typeclasses-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def reduce[A : Monoid](xs: List[A]): A = ???
3434
Since we don't have a name for the `Monoid` instance of `A`, we need to resort to `summon` in the body of `reduce`:
3535
```scala
3636
def reduce[A : Monoid](xs: List[A]): A =
37-
xs.foldLeft(summon Monoid[A])(_ `combine` _)
37+
xs.foldLeft(summon[Monoid[A]].unit)(_ `combine` _)
3838
```
3939
That's generally considered too painful to write and read, hence people usually adopt one of two alternatives. Either, eschew context bounds and switch to using clauses:
4040
```scala

project/MiMaFilters.scala

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ object MiMaFilters {
1111
ProblemFilters.exclude[MissingFieldProblem]("scala.runtime.stdLibPatches.language#experimental.modularity"),
1212
ProblemFilters.exclude[MissingClassProblem]("scala.runtime.stdLibPatches.language$experimental$modularity$"),
1313
ProblemFilters.exclude[DirectMissingMethodProblem]("scala.compiletime.package#package.deferred"),
14+
ProblemFilters.exclude[MissingClassProblem]("scala.annotation.internal.WitnessNames"),
1415
),
1516

1617
// Additions since last LTS

0 commit comments

Comments
 (0)