Skip to content

Commit 36ab621

Browse files
oderskyDarkDimius
authored andcommitted
Fix comment
1 parent d01a0c9 commit 36ab621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/Erasure.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ object Erasure extends TypeTestsCasts{
471471
override def typedDefDef(ddef: untpd.DefDef, sym: Symbol)(implicit ctx: Context) = {
472472
var effectiveSym = sym
473473
if (sym == defn.newRefArrayMethod) {
474-
// newRefArray is treated specially: It's new only method source-defined method
474+
// newRefArray is treated specially: It's the only source-defined method
475475
// that has a polymorphic type after erasure. But treating its (dummy) definition
476476
// with a polymorphic type at and after erasure is an awkward special case.
477477
// We therefore rewrite the method definition with a new Symbol of type

0 commit comments

Comments
 (0)