You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is checked: A self type T is a subtype of all
selftypes of classes refernced by T. That is, a self type
has to subsume all self types of its required type. Ot,
otherwise said, requirements must be closed; you cannot
discover new ones in following them.
ctx.error(d"illegal inheritance: self type ${cinfo.selfType} of $clazz does not conform to self type $pself of parent ${parent.classSymbol}", clazz.pos)
88
+
ctx.error(d"cannot extend final $pclazz", cls.pos)
89
+
if (pclazz.is(Sealed) && pclazz.associatedFile != cls.associatedFile)
90
+
ctx.error(d"cannot extend sealed $pclazz in different compilation unit", cls.pos)
0 commit comments