File tree 1 file changed +8
-4
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ import MegaPhase.MiniPhase
13
13
import StdNames .nme
14
14
import ast .tpd
15
15
16
- /** This phase replaces `compiletime.uninitialized` on the right hand side
17
- * of a mutable field definition by `_`. This avoids a "is declared erased, but is
18
- * in fact used" error in Erasure and communicates to Constructors that the
19
- * variable does not have an initializer.
16
+ /** This phase replaces `compiletime.uninitialized` on the right hand side of a mutable field definition by `_`.
17
+ * This avoids a
18
+ * ```scala
19
+ * "@compileTimeOnly("`uninitialized` can only be used as the right hand side of a mutable field definition")`
20
+ * ```
21
+ * error in Erasure and communicates to Constructors that the variable does not have an initializer.
22
+ *
23
+ * @syntax markdown
20
24
*/
21
25
class UninitializedDefs extends MiniPhase :
22
26
import tpd ._
You can’t perform that action at this time.
0 commit comments