File tree 1 file changed +4
-1
lines changed
src/dotty/tools/dotc/transform 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,14 @@ class TreeChecker extends Phase with SymTransformer {
135
135
}
136
136
}
137
137
138
- class Checker (phasesToCheck : Seq [Phase ]) extends ReTyper with NoChecking {
138
+ class Checker (phasesToCheck : Seq [Phase ]) extends ReTyper with Checking {
139
139
140
140
val nowDefinedSyms = new mutable.HashSet [Symbol ]
141
141
val everDefinedSyms = new mutable.HashMap [Symbol , Tree ]
142
142
143
+ // don't check value classes after typer, as the constraint about constructors doesn't hold after transform
144
+ override def checkDerivedValueClass (clazz : Symbol , stats : List [Tree ])(implicit ctx : Context ) = ()
145
+
143
146
def withDefinedSym [T ](tree : untpd.Tree )(op : => T )(implicit ctx : Context ): T = tree match {
144
147
case tree : DefTree =>
145
148
val sym = tree.symbol
You can’t perform that action at this time.
0 commit comments