Skip to content

Commit 94cff4a

Browse files
committed
Make TrustedTypeTestKey sticky
1 parent 970922f commit 94cff4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import NameKinds.{PatMatStdBinderName, PatMatAltsName, PatMatResultName}
1616
import config.Printers.patmatch
1717
import reporting.diagnostic.messages._
1818
import dotty.tools.dotc.ast._
19-
import util.Property.Key
19+
import util.Property._
2020

2121
/** The pattern matching transform.
2222
* After this phase, the only Match nodes remaining in the code are simple switches
@@ -53,7 +53,7 @@ object PatternMatcher {
5353
/** Minimal number of cases to emit a switch */
5454
final val MinSwitchCases = 4
5555

56-
object TrustedTypeTestKey extends Key[Unit]
56+
val TrustedTypeTestKey: Key[Unit] = new StickyKey[Unit]
5757

5858
/** Was symbol generated by pattern matcher? */
5959
def isPatmatGenerated(sym: Symbol)(implicit ctx: Context): Boolean =

0 commit comments

Comments
 (0)