File tree Expand file tree Collapse file tree 2 files changed +4
-25
lines changed
src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -92,11 +92,6 @@ trait SymDenotations { this: Context =>
92
92
explain(" denotation is not a SymDenotation" )
93
93
}
94
94
}
95
-
96
- /** An anonymous type denotation with an info `>: Nothing <: Any`. Used to
97
- * avoid stackoverflows when computing members of TypeRefs
98
- */
99
- lazy val anyTypeDenot = new JointRefDenotation (NoSymbol , TypeBounds .empty, Period .allInRun(ctx.runId))
100
95
}
101
96
102
97
object SymDenotations {
Original file line number Diff line number Diff line change @@ -1594,26 +1594,10 @@ object Types {
1594
1594
}
1595
1595
}
1596
1596
1597
- protected def asMemberOf (prefix : Type )(implicit ctx : Context ): Denotation = {
1598
- // we might now get cycles over members that are in a refinement but that lack
1599
- // a symbol. Without the following precaution i974.scala stackoverflows when compiled
1600
- // with new hk scheme.
1601
- // TODO: Do we still need the complications here?
1602
- val savedDenot = lastDenotation
1603
- val savedSymbol = lastSymbol
1604
- if (prefix.isInstanceOf [RecThis ] && name.isTypeName) {
1605
- lastDenotation = ctx.anyTypeDenot
1606
- lastSymbol = NoSymbol
1607
- }
1608
- try
1609
- if (name.isShadowedName) prefix.nonPrivateMember(name.revertShadowed)
1610
- else prefix.member(name)
1611
- finally
1612
- if (lastDenotation eq ctx.anyTypeDenot) {
1613
- lastDenotation = savedDenot
1614
- lastSymbol = savedSymbol
1615
- }
1616
- }
1597
+ protected def asMemberOf (prefix : Type )(implicit ctx : Context ): Denotation =
1598
+ if (name.isShadowedName) prefix.nonPrivateMember(name.revertShadowed)
1599
+ else prefix.member(name)
1600
+
1617
1601
1618
1602
/** (1) Reduce a type-ref `W # X` or `W { ... } # U`, where `W` is a wildcard type
1619
1603
* to an (unbounded) wildcard type.
You can’t perform that action at this time.
0 commit comments