Skip to content

Commit a5da78a

Browse files
committed
Fix typos in comment
1 parent cf1f290 commit a5da78a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,20 +925,20 @@ trait Implicits { self: Typer =>
925925
untpd.Apply(untpd.TypedSplice(generated), untpd.TypedSplice(argument) :: Nil),
926926
pt, locked)
927927
val generated1 = adapt(generated, pt, locked)
928-
928+
929929
lazy val shadowing =
930930
typed(untpd.Ident(cand.implicitRef.implicitName) withPos pos.toSynthetic)(
931931
nestedContext().addMode(Mode.ImplicitShadowing).setExploreTyperState())
932932

933933
/** Is candidate reference the same as the `shadowing` reference? (i.e.
934-
* no actual shadowoing occured). This is the case of the
934+
* no actual shadowing occured). This is the case if the
935935
* underlying symbol of the shadowing reference is the same as the
936936
* symbol of the candidate reference, or if they have a common type owner.
937937
*
938938
* The second condition (same owner) is needed because the candidate reference
939939
* and the potential shadowing reference are typechecked with different prototypes.
940940
* so might yield different overloaded symbols. E.g. if the candidate reference
941-
* is to an implicit conversion generated from an implicit class, the shadwoing
941+
* is to an implicit conversion generated from an implicit class, the shadowing
942942
* reference could go to the companion object of that class instead.
943943
*/
944944
def refSameAs(shadowing: Tree): Boolean = {

0 commit comments

Comments
 (0)