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
1665
1665
checkRefinementNonCyclic(refinement, refineCls, seen)
1666
1666
val rsym = refinement.symbol
1667
1667
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
1669
1669
// polymorphic here in order to avoid to trigger the `member.isOverloaded` test below.
1670
1670
val polymorphicRefinementAllowed =
1671
1671
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
3
3
title : The @targetName annotation
4
4
---
5
5
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:
7
7
``` scala
8
8
import scala .annotation .targetName
9
9
You can’t perform that action at this time.
0 commit comments