We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1746e29 commit 82277dcCopy full SHA for 82277dc
compiler/src/dotty/tools/dotc/transform/SymUtils.scala
@@ -138,7 +138,7 @@ class SymUtils(val self: Symbol) extends AnyVal {
138
* entered at this point).
139
*/
140
def registerIfChild(late: Boolean = false)(implicit ctx: Context): Unit = {
141
- def register(child: Symbol, parent: Type): Unit = {
+ def register(child: Symbol, parent: Type) = {
142
val cls = parent.classSymbol
143
if (cls.is(Sealed) && (!late || child.isInaccessibleChildOf(cls)))
144
cls.addAnnotation(Annotation.Child(child))
0 commit comments