File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ object CheckRealizable {
5252
5353 def boundsRealizability (tp : Type )(implicit ctx : Context ) =
5454 new CheckRealizable ().boundsRealizability(tp)
55+
56+ private val LateInitialized = Lazy | Erased ,
5557}
5658
5759/** Compute realizability status */
@@ -66,7 +68,7 @@ class CheckRealizable(implicit ctx: Context) {
6668 /** Is symbol's definitition a lazy or erased val?
6769 * (note we exclude modules here, because their realizability is ensured separately)
6870 */
69- private def isLateInitialized (sym : Symbol ) = sym.is(Lazy | Erased , butNot = Module )
71+ private def isLateInitialized (sym : Symbol ) = sym.is(LateInitialized , butNot = Module )
7072
7173 /** The realizability status of given type `tp`*/
7274 def realizability (tp : Type ): Realizability = tp.dealias match {
You can’t perform that action at this time.
0 commit comments