File tree 2 files changed +3
-14
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -34,24 +34,12 @@ object MatchTypes:
34
34
true
35
35
case tp1 : TermRef =>
36
36
! tp1.symbol.is(Param ) && isConcrete(tp1.underlying)
37
- case tp1 : TermParamRef =>
37
+ case _ : ( ParamRef | MatchType ) =>
38
38
false
39
- case tp1 : SingletonType =>
40
- isConcrete(tp1.underlying)
41
- case tp1 : ExprType =>
42
- isConcrete(tp1.underlying)
43
- case tp1 : AnnotatedType =>
44
- isConcrete(tp1.parent)
45
- case tp1 : RefinedOrRecType =>
39
+ case tp1 : TypeProxy =>
46
40
isConcrete(tp1.underlying)
47
41
case tp1 : AndOrType =>
48
42
isConcrete(tp1.tp1) && isConcrete(tp1.tp2)
49
- case tp1 : TypeVar =>
50
- isConcrete(tp1.underlying)
51
- case tp1 : LazyRef =>
52
- isConcrete(tp1.ref)
53
- case tp1 : FlexibleType =>
54
- isConcrete(tp1.hi)
55
43
case _ =>
56
44
false
57
45
end isConcrete
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ object Types extends TypeUtils {
76
76
* | +- HKTypeLambda
77
77
* | +- MatchType
78
78
* | +- FlexibleType
79
+ * | +- LazyRef
79
80
* |
80
81
* +- GroundType -+- AndType
81
82
* +- OrType
You can’t perform that action at this time.
0 commit comments