Skip to content

Commit 34ab879

Browse files
nicolasstuckiJendrik Wenke
authored and
Jendrik Wenke
committed
Remove unnecessary type
1 parent 2b02572 commit 34ab879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/SymUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SymUtils(val self: Symbol) extends AnyVal {
138138
* entered at this point).
139139
*/
140140
def registerIfChild(late: Boolean = false)(implicit ctx: Context): Unit = {
141-
def register(child: Symbol, parent: Type): Unit = {
141+
def register(child: Symbol, parent: Type) = {
142142
val cls = parent.classSymbol
143143
if (cls.is(Sealed) && (!late || child.isInaccessibleChildOf(cls)))
144144
cls.addAnnotation(Annotation.Child(child))

0 commit comments

Comments
 (0)