We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d5629f + d0278cb commit 8b3a647Copy full SHA for 8b3a647
src/main/scala/scala/async/internal/AsyncTransform.scala
@@ -56,7 +56,7 @@ trait AsyncTransform {
56
val apply0DefDef: DefDef = {
57
// We extend () => Unit so we can pass this class as the by-name argument to `Future.apply`.
58
// 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))
+ DefDef(NoMods, name.apply, Nil, List(Nil), TypeTree(definitions.UnitTpe), Apply(Ident(name.apply), literalNull :: Nil))
60
}
61
List(emptyConstructor, stateVar) ++ resultAndAccessors ++ List(execContextValDef) ++ List(applyDefDefDummyBody, apply0DefDef)
62
0 commit comments