Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky authored Oct 4, 2024
1 parent 0a416d8 commit 6828fe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4755,7 +4755,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
}

/** Hook for inheriting Typers to do a last-effort adaptation. If a different
* tree is returned, we will readpat that one, ptherwise we issue a type error afterwards.
* tree is returned, we will re-adapt that one, otherwise we issue a type error afterwards.
``
*/
protected def healAdapt(tree: Tree, pt: Type)(using Context): Tree = tree

Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/reference/other-new-features/named-tuples.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Bob match
We allow named patterns not just for named tuples but also for case classes. For instance:
```scala
city match
case c @ City(name = "London") => println(p.population)
case c @ City(name = "London") => println(c.population)
case City(name = n, zip = 1026, population = pop) => println(pop)
```

Expand Down

0 comments on commit 6828fe7

Please sign in to comment.