Skip to content

Commit 1a163a0

Browse files
oderskyliufengyun
andauthored
Apply suggestions from code review
Co-authored-by: Fengyun Liu <[email protected]>
1 parent b48fa20 commit 1a163a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ class Typer extends Namer
16721672
checkRefinementNonCyclic(refinement, refineCls, seen)
16731673
val rsym = refinement.symbol
16741674
rsym.setTargetName(EmptyTermName)
1675-
// refinements can refine members with arbitrary target names, so we make their tragetnames
1675+
// refinements can refine members with arbitrary target names, so we make their target names
16761676
// polymorphic here in order to avoid to trigger the `member.isOverloaded` test below.
16771677
val polymorphicRefinementAllowed =
16781678
tpt1.tpe.typeSymbol == defn.PolyFunctionClass && rsym.name == nme.apply

docs/docs/reference/other-new-features/targetName.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: doc-page
33
title: 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
88
import scala.annotation.targetName
99

0 commit comments

Comments
 (0)