File tree 1 file changed +2
-1
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ object ShortcutImplicits {
171
171
(specializeMonoTargets || ! sym.isEffectivelyFinal || sym.allOverriddenSymbols.nonEmpty)
172
172
173
173
/** @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`.
175
175
*/
176
176
private def directInfo (info : Type )(implicit ctx : Context ): Type = info match {
177
177
case info : PolyType => info.derivedLambdaType(resType = directInfo(info.resultType))
@@ -186,6 +186,7 @@ object ShortcutImplicits {
186
186
name = DirectMethodName (sym.name.asTermName).asInstanceOf [sym.ThisName ],
187
187
flags = sym.flags | Synthetic ,
188
188
info = directInfo(sym.info))
189
+ // make flags conformant to RefChecks. Override is meaningless after RefChecks.
189
190
if (direct.allOverriddenSymbols.isEmpty) direct.resetFlag(Override )
190
191
direct
191
192
}
You can’t perform that action at this time.
0 commit comments