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 cc6322f commit 5db4230Copy full SHA for 5db4230
compiler/src/dotty/tools/dotc/transform/FirstTransform.scala
@@ -163,7 +163,7 @@ class FirstTransform extends MiniPhaseTransform with InfoTransformer with Annota
163
164
override def transformValDef(vdef: tpd.ValDef)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = {
165
if (vdef.symbol.hasAnnotation(defn.VolatileAnnot) && vdef.tpt.tpe.isPhantom)
166
- ctx.error("Phantom fields can not be @volitile", vdef.pos)
+ ctx.error("Phantom fields can not be @volatile", vdef.pos)
167
vdef
168
}
169
0 commit comments