File tree 1 file changed +1
-8
lines changed
compiler/src/dotty/tools/dotc/transform/init
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1101,15 +1101,12 @@ object Semantic:
1101
1101
*
1102
1102
* The class to be checked must be an instantiable concrete class.
1103
1103
*/
1104
- private def checkClass (classSym : ClassSymbol )(using Cache .Data , Context ): Int =
1104
+ private def checkClass (classSym : ClassSymbol )(using Cache .Data , Context ): Unit =
1105
1105
val thisRef = ThisRef (classSym)
1106
1106
val tpl = classSym.defTree.asInstanceOf [TypeDef ].rhs.asInstanceOf [Template ]
1107
1107
1108
- var accum = 0
1109
-
1110
1108
@ tailrec
1111
1109
def iterate (): Unit = {
1112
- accum += 1
1113
1110
given Promoted = Promoted .empty(classSym)
1114
1111
given Trace = Trace .empty.add(classSym.defTree)
1115
1112
given reporter : Reporter .BufferedReporter = new Reporter .BufferedReporter
@@ -1132,19 +1129,15 @@ object Semantic:
1132
1129
}
1133
1130
1134
1131
iterate()
1135
-
1136
- accum - 1
1137
1132
end checkClass
1138
1133
1139
1134
/**
1140
1135
* Check the specified concrete classes
1141
1136
*/
1142
1137
def checkClasses (classes : List [ClassSymbol ])(using Context ): Unit =
1143
- var total = 0
1144
1138
given Cache .Data ()
1145
1139
for classSym <- classes if isConcreteClass(classSym) do
1146
1140
total += checkClass(classSym)
1147
- System .err.nn.println(total)
1148
1141
1149
1142
// ----- Semantic definition --------------------------------
1150
1143
type ArgInfo = TraceValue [Value ]
You can’t perform that action at this time.
0 commit comments