We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3df681 commit c6edb02Copy full SHA for c6edb02
src/main/scala/scala/async/internal/AsyncTransform.scala
@@ -70,7 +70,7 @@ trait AsyncTransform {
70
symbolOf[scala.Function1[Any, Any]]
71
}
72
val tryToUnit = appliedType(tycon, futureSystemOps.tryType[Any], typeOf[Unit])
73
- val template = Template((futureSystemOps.stateMachineClassParents ::: List(tryToUnit, typeOf[() => Unit])).map(TypeTree(_)), emptyValDef, body)
+ val template = Template((futureSystemOps.stateMachineClassParents ::: List(tryToUnit, typeOf[() => Unit])).map(TypeTree(_)), noSelfType, body)
74
75
val t = ClassDef(NoMods, name.stateMachineT, Nil, template)
76
typecheckClassDef(t)
0 commit comments