File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ object Checking {
30
30
*
31
31
*/
32
32
33
- case class State (
33
+ final case class State (
34
34
var visited : Set [Effect ], // effects that have been checked or are being checked
35
35
path : Vector [Tree ], // the path that leads to the current effect
36
36
thisClass : ClassSymbol , // the concrete class of `this`
@@ -47,7 +47,6 @@ object Checking {
47
47
this .visited = state.visited
48
48
res
49
49
50
-
51
50
def isFieldInitialized (field : Symbol ): Boolean =
52
51
init || fieldsInited.contains(field)
53
52
Original file line number Diff line number Diff line change @@ -216,9 +216,7 @@ class CycleChecker(cache: Cache) {
216
216
dependencies = mutable.Set .empty,
217
217
env = env,
218
218
init = true
219
- ) {
220
- override def isFieldInitialized (field : Symbol ): Boolean = true
221
- }
219
+ )
222
220
223
221
val pot = Hot (dep.cls)(dep.source)
224
222
val effs = pot.potentialsOf(dep.symbol)(using env).promote(dep.source)
You can’t perform that action at this time.
0 commit comments