Skip to content

Commit 237ebd2

Browse files
committed
derivesFrom for FlexibleType
1 parent fce8111 commit 237ebd2

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
@@ -277,6 +277,8 @@ object Types {
277277
tp.bound.derivesFrom(cls) || tp.reduced.derivesFrom(cls)
278278
case tp: TypeProxy =>
279279
loop(tp.underlying)
280+
case tp: FlexibleType =>
281+
loop(tp.underlying)
280282
case tp: AndType =>
281283
loop(tp.tp1) || loop(tp.tp2)
282284
case tp: OrType =>

0 commit comments

Comments
 (0)