File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
compiler/src/dotty/tools/dotc/transform/patmat Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import reporting._
23
23
import config .Printers .{exhaustivity => debug }
24
24
import util .{SrcPos , NoSourcePosition }
25
25
26
+ import scala .annotation .internal .sharable
26
27
import scala .collection .mutable
27
28
28
29
/* Space logic for checking exhaustivity and unreachability of pattern matching
@@ -58,7 +59,7 @@ import scala.collection.mutable
58
59
sealed trait Space :
59
60
import SpaceEngine .*
60
61
61
- private val isSubspaceCache = mutable.HashMap .empty[Space , Boolean ]
62
+ @ sharable private val isSubspaceCache = mutable.HashMap .empty[Space , Boolean ]
62
63
63
64
def isSubspace (b : Space )(using Context ): Boolean =
64
65
val a = this
@@ -71,7 +72,7 @@ sealed trait Space:
71
72
isSubspaceCache.getOrElseUpdate(b, computeIsSubspace(a, b))
72
73
}
73
74
74
- private var mySimplify : Space | Null = _
75
+ @ sharable private var mySimplify : Space | Null = _
75
76
76
77
def simplify (using Context ): Space =
77
78
val simplify = mySimplify
You can’t perform that action at this time.
0 commit comments