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 {
52
52
53
53
def boundsRealizability (tp : Type )(implicit ctx : Context ) =
54
54
new CheckRealizable ().boundsRealizability(tp)
55
+
56
+ private val LateInitialized = Lazy | Erased ,
55
57
}
56
58
57
59
/** Compute realizability status */
@@ -66,7 +68,7 @@ class CheckRealizable(implicit ctx: Context) {
66
68
/** Is symbol's definitition a lazy or erased val?
67
69
* (note we exclude modules here, because their realizability is ensured separately)
68
70
*/
69
- private def isLateInitialized (sym : Symbol ) = sym.is(Lazy | Erased , butNot = Module )
71
+ private def isLateInitialized (sym : Symbol ) = sym.is(LateInitialized , butNot = Module )
70
72
71
73
/** The realizability status of given type `tp`*/
72
74
def realizability (tp : Type ): Realizability = tp.dealias match {
You can’t perform that action at this time.
0 commit comments