Skip to content

Commit 963f1e2

Browse files
olhotaknoti0na1
authored andcommitted
derivesFrom for FlexibleType
1 parent f49dbfc commit 963f1e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ object Types {
282282
tp.bound.derivesFrom(cls) || tp.reduced.derivesFrom(cls)
283283
case tp: TypeProxy =>
284284
loop(tp.underlying)
285+
case tp: FlexibleType =>
286+
loop(tp.underlying)
285287
case tp: AndType =>
286288
loop(tp.tp1) || loop(tp.tp2)
287289
case tp: OrType =>

0 commit comments

Comments
 (0)