File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -571,7 +571,7 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
571
571
else foldOver(sym, tree)
572
572
}
573
573
574
- /** The owner to be used in a local context when traversin a tree */
574
+ /** The owner to be used in a local context when traversing a tree */
575
575
def localOwner (tree : Tree )(using Context ): Symbol =
576
576
val sym = tree.symbol
577
577
(if sym.is(PackageVal ) then sym.moduleClass else sym).orElse(ctx.owner)
Original file line number Diff line number Diff line change @@ -2516,7 +2516,7 @@ import transform.SymUtils._
2516
2516
def defKind = if tree.symbol.is(Module ) then " object" else " class"
2517
2517
def msg = s " Case $defKind definitions are not allowed in inline methods or quoted code. Use a normal $defKind instead. "
2518
2518
def explain =
2519
- em """ Case class/object definitions generate a considerable fooprint in code size.
2519
+ em """ Case class/object definitions generate a considerable footprint in code size.
2520
2520
|Inlining such definition would multiply this footprint for each call site.
2521
2521
| """ .stripMargin
2522
2522
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ object Selectable:
47
47
* on the precise `paramTypes`. Subtypes of `WithoutPreciseParameterTypes`
48
48
* can have more relaxed subtyping rules for refinements. They do not need
49
49
* the additional restriction that the signatures of the refinement and
50
- * the definition that implements the refinment must match.
50
+ * the definition that implements the refinement must match.
51
51
*/
52
52
@ since(" 3.1" )
53
53
trait WithoutPreciseParameterTypes extends Selectable
You can’t perform that action at this time.
0 commit comments