File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ object ShortcutImplicits {
171171 (specializeMonoTargets || ! sym.isEffectivelyFinal || sym.allOverriddenSymbols.nonEmpty)
172172
173173 /** @pre The type's final result type is an implicit function type `implicit Ts => R`.
174- * @return The type of the `apply` member of `implicit Ts => R`.
174+ * @return The type of the `apply` member of `implicit Ts => R`.
175175 */
176176 private def directInfo (info : Type )(implicit ctx : Context ): Type = info match {
177177 case info : PolyType => info.derivedLambdaType(resType = directInfo(info.resultType))
@@ -186,6 +186,7 @@ object ShortcutImplicits {
186186 name = DirectMethodName (sym.name.asTermName).asInstanceOf [sym.ThisName ],
187187 flags = sym.flags | Synthetic ,
188188 info = directInfo(sym.info))
189+ // make flags conformant to RefChecks. Override is meaningless after RefChecks.
189190 if (direct.allOverriddenSymbols.isEmpty) direct.resetFlag(Override )
190191 direct
191192 }
You can’t perform that action at this time.
0 commit comments