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._
2323import config .Printers .{exhaustivity => debug }
2424import util .{SrcPos , NoSourcePosition }
2525
26+ import scala .annotation .internal .sharable
2627import scala .collection .mutable
2728
2829/* Space logic for checking exhaustivity and unreachability of pattern matching
@@ -58,7 +59,7 @@ import scala.collection.mutable
5859sealed trait Space :
5960 import SpaceEngine .*
6061
61- private val isSubspaceCache = mutable.HashMap .empty[Space , Boolean ]
62+ @ sharable private val isSubspaceCache = mutable.HashMap .empty[Space , Boolean ]
6263
6364 def isSubspace (b : Space )(using Context ): Boolean =
6465 val a = this
@@ -71,7 +72,7 @@ sealed trait Space:
7172 isSubspaceCache.getOrElseUpdate(b, computeIsSubspace(a, b))
7273 }
7374
74- private var mySimplified : Space | Null = _
75+ @ sharable private var mySimplified : Space | Null = _
7576
7677 def simplify (using Context ): Space =
7778 val simplified = mySimplified
You can’t perform that action at this time.
0 commit comments