File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -284,10 +284,13 @@ trait ImplicitRunInfo { self: RunInfo =>
284
284
override implicit protected val ctx : Context = liftingCtx
285
285
override def stopAtStatic = true
286
286
def apply (tp : Type ) = tp match {
287
+ case tp : TypeRef if tp.symbol.isLambdaTrait =>
288
+ defn.AnyType
287
289
case tp : TypeRef if tp.symbol.isAbstractOrAliasType =>
288
290
val pre = tp.prefix
289
291
def joinClass (tp : Type , cls : ClassSymbol ) =
290
- AndType .make(tp, cls.typeRef.asSeenFrom(pre, cls.owner))
292
+ if (cls.isLambdaTrait) tp
293
+ else AndType .make(tp, cls.typeRef.asSeenFrom(pre, cls.owner))
291
294
val lead = if (tp.prefix eq NoPrefix ) defn.AnyType else apply(tp.prefix)
292
295
(lead /: tp.classSymbols)(joinClass)
293
296
case tp : TypeVar =>
You can’t perform that action at this time.
0 commit comments