File tree 1 file changed +6
-2
lines changed
compiler/src/dotty/tools/dotc/core 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -934,6 +934,7 @@ object Types {
934
934
*/
935
935
final def widenTermRefExpr (implicit ctx : Context ): Type = stripTypeVar match {
936
936
case tp : TermRef if ! tp.isOverloaded => tp.underlying.widenExpr.widenTermRefExpr
937
+ case tp : AppliedTermRef => tp.underlying.widenExpr.widenTermRefExpr
937
938
case _ => this
938
939
}
939
940
@@ -2172,8 +2173,11 @@ object Types {
2172
2173
def apply (fn : Type , args : List [Type ])(implicit ctx : Context ): Type = {
2173
2174
assertUnerased()
2174
2175
fn.dealias match {
2175
- case fn : TermRef => unique(new CachedAppliedTermRef (fn, args))
2176
- case fn : AppliedTermRef => unique(new CachedAppliedTermRef (fn, args))
2176
+ case fn : TermRef =>
2177
+ assert(! fn.isOverloaded)
2178
+ unique(new CachedAppliedTermRef (fn, args))
2179
+ case fn : AppliedTermRef =>
2180
+ unique(new CachedAppliedTermRef (fn, args))
2177
2181
case _ =>
2178
2182
fn.widenDealias match {
2179
2183
case methTpe : MethodType => ctx.typer.applicationResultType(methTpe, args) // TODO(gsps): Check length?
You can’t perform that action at this time.
0 commit comments