We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bff0ce commit 95aa46eCopy full SHA for 95aa46e
compiler/src/dotty/tools/dotc/transform/CheckReentrant.scala
@@ -43,7 +43,10 @@ class CheckReentrant extends MiniPhase {
43
44
def isIgnored(sym: Symbol)(implicit ctx: Context): Boolean =
45
sym.hasAnnotation(sharableAnnot()) ||
46
- sym.hasAnnotation(unsharedAnnot())
+ sym.hasAnnotation(unsharedAnnot()) ||
47
+ sym.owner == defn.EnumValuesClass
48
+ // enum values are initialized eagerly before use
49
+ // in the long run, we should make them vals
50
51
def scanning(sym: Symbol)(op: => Unit)(implicit ctx: Context): Unit = {
52
ctx.log(i"${" " * indent}scanning $sym")
0 commit comments