File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/typer
docs/_docs/reference/other-new-features Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4755,7 +4755,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
47554755 }
47564756
47574757 /** Hook for inheriting Typers to do a last-effort adaptation. If a different
4758- * tree is returned, we will readpat that one, ptherwise we issue a type error afterwards.
4758+ * tree is returned, we will re-adapt that one, otherwise we issue a type error afterwards.
4759+ ``
47594760 */
47604761 protected def healAdapt (tree : Tree , pt : Type )(using Context ): Tree = tree
47614762
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ Bob match
9999We allow named patterns not just for named tuples but also for case classes. For instance:
100100``` scala
101101city match
102- case c @ City (name = " London" ) => println(p .population)
102+ case c @ City (name = " London" ) => println(c .population)
103103 case City (name = n, zip = 1026 , population = pop) => println(pop)
104104```
105105
You can’t perform that action at this time.
0 commit comments