Skip to content

Commit 8b3a647

Browse files
authored
Merge pull request #240 from retronym/ticket/238
Override Function0.apply() with matching parens
2 parents 6d5629f + d0278cb commit 8b3a647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/async/internal/AsyncTransform.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ trait AsyncTransform {
5656
val apply0DefDef: DefDef = {
5757
// We extend () => Unit so we can pass this class as the by-name argument to `Future.apply`.
5858
// See SI-1247 for the the optimization that avoids creation.
59-
DefDef(NoMods, name.apply, Nil, Nil, TypeTree(definitions.UnitTpe), Apply(Ident(name.apply), literalNull :: Nil))
59+
DefDef(NoMods, name.apply, Nil, List(Nil), TypeTree(definitions.UnitTpe), Apply(Ident(name.apply), literalNull :: Nil))
6060
}
6161
List(emptyConstructor, stateVar) ++ resultAndAccessors ++ List(execContextValDef) ++ List(applyDefDefDummyBody, apply0DefDef)
6262
}

0 commit comments

Comments
 (0)