Skip to content

Commit a700a12

Browse files
committed
Fix to TypeLambda over with a TypeBounds body
Taking typeAlias is illegal in that case.
1 parent 3f45540 commit a700a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ object TypeApplications {
5757
assert(argBoundss.length == variances.length)
5858
RefinedType(
5959
argRefinements(defn.LambdaTrait(variances).typeRef, 0, argBoundss),
60-
tpnme.hkApply, rt => TypeAlias(bodyFn(rt), 1))
60+
tpnme.hkApply, bodyFn(_).bounds.withVariance(1))
6161
}
6262

6363
def unapply(tp: Type)(implicit ctx: Context): Option[(List[Int], List[TypeBounds], Type)] = tp match {

0 commit comments

Comments
 (0)