File tree 2 files changed +1
-3
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ object CheckRealizable {
21
21
22
22
object NotConcrete extends Realizability (" is not a concrete type" )
23
23
24
- object NotStable extends Realizability (" is not a stable reference" )
25
-
26
24
class NotFinal (sym : Symbol )(implicit ctx : Context )
27
25
extends Realizability (i " refers to nonfinal $sym" )
28
26
Original file line number Diff line number Diff line change @@ -406,10 +406,10 @@ class TypeComparer(initctx: Context) extends ConstraintHandling {
406
406
if (cls2 eq AnyKindClass ) return true
407
407
if (tp1.isRef(NothingClass )) return true
408
408
if (tp1.isLambdaSub) return false
409
- if (cls2 eq AnyClass ) return true
410
409
// Note: We would like to replace this by `if (tp1.hasHigherKind)`
411
410
// but right now we cannot since some parts of the standard library rely on the
412
411
// idiom that e.g. `List <: Any`. We have to bootstrap without scalac first.
412
+ if (cls2 eq AnyClass ) return true
413
413
if (cls2 == defn.SingletonClass && tp1.isStable) return true
414
414
return tryBaseType(cls2)
415
415
}
You can’t perform that action at this time.
0 commit comments