Skip to content

Commit 97ef52e

Browse files
committed
simplify unusableForInterface
1 parent 8e7a685 commit 97ef52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ object Types {
368368
case AppliedType(tycon, args) => tycon.unusableForInference || args.exists(_.unusableForInference)
369369
case RefinedType(parent, _, rinfo) => parent.unusableForInference || rinfo.unusableForInference
370370
case TypeBounds(lo, hi) => lo.unusableForInference || hi.unusableForInference
371-
case tp: FlexibleType => tp.underlying.unusableForInference || tp.lo.unusableForInference
371+
case FlexibleType(underlying) => underlying.unusableForInference
372372
case tp: AndOrType => tp.tp1.unusableForInference || tp.tp2.unusableForInference
373373
case tp: LambdaType => tp.resultType.unusableForInference || tp.paramInfos.exists(_.unusableForInference)
374374
case WildcardType(optBounds) => optBounds.unusableForInference

0 commit comments

Comments
 (0)