File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1101,15 +1101,12 @@ object Semantic:
11011101 *
11021102 * The class to be checked must be an instantiable concrete class.
11031103 */
1104- private def checkClass (classSym : ClassSymbol )(using Cache .Data , Context ): Int =
1104+ private def checkClass (classSym : ClassSymbol )(using Cache .Data , Context ): Unit =
11051105 val thisRef = ThisRef (classSym)
11061106 val tpl = classSym.defTree.asInstanceOf [TypeDef ].rhs.asInstanceOf [Template ]
11071107
1108- var accum = 0
1109-
11101108 @ tailrec
11111109 def iterate (): Unit = {
1112- accum += 1
11131110 given Promoted = Promoted .empty(classSym)
11141111 given Trace = Trace .empty.add(classSym.defTree)
11151112 given reporter : Reporter .BufferedReporter = new Reporter .BufferedReporter
@@ -1132,19 +1129,15 @@ object Semantic:
11321129 }
11331130
11341131 iterate()
1135-
1136- accum - 1
11371132 end checkClass
11381133
11391134 /**
11401135 * Check the specified concrete classes
11411136 */
11421137 def checkClasses (classes : List [ClassSymbol ])(using Context ): Unit =
1143- var total = 0
11441138 given Cache .Data ()
11451139 for classSym <- classes if isConcreteClass(classSym) do
11461140 total += checkClass(classSym)
1147- System .err.nn.println(total)
11481141
11491142// ----- Semantic definition --------------------------------
11501143 type ArgInfo = TraceValue [Value ]
You can’t perform that action at this time.
0 commit comments