File tree 1 file changed +2
-8
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -2678,11 +2678,8 @@ object Types extends TypeUtils {
2678
2678
* refinement type `T { X = U; ... }`
2679
2679
*/
2680
2680
def reduceProjection (using Context ): Type =
2681
- if (isType || true ) {
2682
- val reduced = prefix.lookupRefined(name)
2683
- if (reduced.exists) reduced else this
2684
- }
2685
- else this
2681
+ val reduced = prefix.lookupRefined(name)
2682
+ if reduced.exists then reduced else this
2686
2683
2687
2684
/** Guard against cycles that can arise if given `op`
2688
2685
* follows info. The problematic cases are a type alias to itself or
@@ -6594,9 +6591,6 @@ object Types extends TypeUtils {
6594
6591
variance = saved
6595
6592
this (y, restpe)
6596
6593
6597
- // case tp: TermRef =>
6598
- // if stopBecauseStaticOrLocal(tp) then x else applyToPrefix(x, tp)
6599
-
6600
6594
case tp : TypeVar =>
6601
6595
this (x, tp.underlying)
6602
6596
You can’t perform that action at this time.
0 commit comments