File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer
docs/docs/reference/other-new-features Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1665,7 +1665,7 @@ class Typer extends Namer
16651665 checkRefinementNonCyclic(refinement, refineCls, seen)
16661666 val rsym = refinement.symbol
16671667 rsym.setTargetName(EmptyTermName )
1668- // refinements can refine members with arbitrary target names, so we make their tragetnames
1668+ // refinements can refine members with arbitrary target names, so we make their target names
16691669 // polymorphic here in order to avoid to trigger the `member.isOverloaded` test below.
16701670 val polymorphicRefinementAllowed =
16711671 tpt1.tpe.typeSymbol == defn.PolyFunctionClass && rsym.name == nme.apply
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ layout: doc-page
33title : The @targetName annotation
44---
55
6- A ` @targetName ` annotation on a definition defines an alternate name for the implementation of that definition: Example:
6+ A ` @targetName ` annotation on a definition defines an alternate name for the implementation of that definition. Example:
77``` scala
88import scala .annotation .targetName
99
You can’t perform that action at this time.
0 commit comments