File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/typer
docs/_docs/reference/other-new-features
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
4755
4755
}
4756
4756
4757
4757
/** 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
+ ``
4759
4760
*/
4760
4761
protected def healAdapt (tree : Tree , pt : Type )(using Context ): Tree = tree
4761
4762
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ Bob match
99
99
We allow named patterns not just for named tuples but also for case classes. For instance:
100
100
``` scala
101
101
city match
102
- case c @ City (name = " London" ) => println(p .population)
102
+ case c @ City (name = " London" ) => println(c .population)
103
103
case City (name = n, zip = 1026 , population = pop) => println(pop)
104
104
```
105
105
You can’t perform that action at this time.
0 commit comments