File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,14 @@ import MegaPhase.MiniPhase
1313import StdNames .nme
1414import ast .tpd
1515
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
2024 */
2125class UninitializedDefs extends MiniPhase :
2226 import tpd ._
You can’t perform that action at this time.
0 commit comments