File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -925,20 +925,20 @@ trait Implicits { self: Typer =>
925
925
untpd.Apply (untpd.TypedSplice (generated), untpd.TypedSplice (argument) :: Nil ),
926
926
pt, locked)
927
927
val generated1 = adapt(generated, pt, locked)
928
-
928
+
929
929
lazy val shadowing =
930
930
typed(untpd.Ident (cand.implicitRef.implicitName) withPos pos.toSynthetic)(
931
931
nestedContext().addMode(Mode .ImplicitShadowing ).setExploreTyperState())
932
932
933
933
/** 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
935
935
* underlying symbol of the shadowing reference is the same as the
936
936
* symbol of the candidate reference, or if they have a common type owner.
937
937
*
938
938
* The second condition (same owner) is needed because the candidate reference
939
939
* and the potential shadowing reference are typechecked with different prototypes.
940
940
* 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
942
942
* reference could go to the companion object of that class instead.
943
943
*/
944
944
def refSameAs (shadowing : Tree ): Boolean = {
You can’t perform that action at this time.
0 commit comments