Skip to content

Commit 5a9ef2d

Browse files
committed
Fix typo in Bridges
1 parent c451e47 commit 5a9ef2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/Bridges.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Bridges(root: ClassSymbol, thisPhase: DenotTransformer)(using Context) {
133133
val anonFun = newAnonFun(ctx.owner,
134134
MethodType(
135135
argTypes.zip(isErased.padTo(argTypes.length, false))
136-
.flatMap((t, e) => if e then List(t) else List()),
136+
.flatMap((t, e) => if e then None else Some(t)),
137137
resType),
138138
coord = ctx.owner.coord)
139139
anonFun.info = transformInfo(anonFun, anonFun.info)

0 commit comments

Comments
 (0)