File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ class SyntheticMethods(thisPhase: DenotTransformer) {
58
58
/** The synthetic methods of the case or value class `clazz`. */
59
59
def syntheticMethods (clazz : ClassSymbol )(implicit ctx : Context ): List [Tree ] = {
60
60
val clazzType = clazz.appliedRef
61
- lazy val accessors = {
62
- val allAccessors = if (isDerivedValueClass(clazz)) clazz.paramAccessors else clazz.caseAccessors
63
- allAccessors.filterConserve( ! _.is( Unused ))
64
- }
61
+ lazy val accessors =
62
+ if (isDerivedValueClass(clazz)) clazz.paramAccessors
63
+ else clazz.caseAccessors
64
+
65
65
val symbolsToSynthesize : List [Symbol ] =
66
66
if (clazz.is(Case )) {
67
67
if (clazz.is(Module )) caseModuleSymbols
@@ -191,7 +191,6 @@ class SyntheticMethods(thisPhase: DenotTransformer) {
191
191
*/
192
192
def valueHashCodeBody (implicit ctx : Context ): Tree = {
193
193
assert(accessors.nonEmpty)
194
- assert(accessors.tail.forall(a => a.info.isPhantom || a.is(Unused )))
195
194
ref(accessors.head).select(nme.hashCode_).ensureApplied
196
195
}
197
196
You can’t perform that action at this time.
0 commit comments