Skip to content

Commit

Permalink
Merge pull request #240 from retronym/ticket/238
Browse files Browse the repository at this point in the history
Override Function0.apply() with matching parens
  • Loading branch information
retronym authored Jun 24, 2020
2 parents 6d5629f + d0278cb commit 8b3a647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/scala/async/internal/AsyncTransform.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ trait AsyncTransform {
val apply0DefDef: DefDef = {
// We extend () => Unit so we can pass this class as the by-name argument to `Future.apply`.
// See SI-1247 for the the optimization that avoids creation.
DefDef(NoMods, name.apply, Nil, Nil, TypeTree(definitions.UnitTpe), Apply(Ident(name.apply), literalNull :: Nil))
DefDef(NoMods, name.apply, Nil, List(Nil), TypeTree(definitions.UnitTpe), Apply(Ident(name.apply), literalNull :: Nil))
}
List(emptyConstructor, stateVar) ++ resultAndAccessors ++ List(execContextValDef) ++ List(applyDefDefDummyBody, apply0DefDef)
}
Expand Down

0 comments on commit 8b3a647

Please sign in to comment.