Skip to content

Commit b0cdbf8

Browse files
committed
Fix CI
1 parent 060a6e4 commit b0cdbf8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc-tool/src/dotty/tools/dottydoc/core/DocASTPhase.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ class DocASTPhase extends Phase {
113113
case c @ TypeDef(n, rhs) if c.symbol.isClass =>
114114
//TODO: should not `collectMember` from `rhs` - instead: get from symbol, will get inherited members as well
115115
val parameters = (c.symbol, annotations(c.symbol), n.show, collectMembers(rhs), flags(c), path(c.symbol), typeParams(c.symbol), constructors(c.symbol), superTypes(c), None, Nil, None)
116-
if (c.symbol.is(Flags.CaseClass)) {
117-
CaseClassImpl.tupled(parameters) :: Nil
118-
} else {
119-
ClassImpl.tupled(parameters) :: Nil
120-
}
116+
val constr =
117+
if (c.symbol.is(Flags.CaseClass)) CaseClassImpl.apply
118+
else ClassImpl.apply
119+
120+
constr.tupled(parameters) :: Nil
121121

122122
/** def */
123123
case d: DefDef =>

0 commit comments

Comments
 (0)