Skip to content

Commit c6edb02

Browse files
committed
Fix deprecation warning emptyValDef -> noSelfType
1 parent c3df681 commit c6edb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ trait AsyncTransform {
7070
symbolOf[scala.Function1[Any, Any]]
7171
}
7272
val tryToUnit = appliedType(tycon, futureSystemOps.tryType[Any], typeOf[Unit])
73-
val template = Template((futureSystemOps.stateMachineClassParents ::: List(tryToUnit, typeOf[() => Unit])).map(TypeTree(_)), emptyValDef, body)
73+
val template = Template((futureSystemOps.stateMachineClassParents ::: List(tryToUnit, typeOf[() => Unit])).map(TypeTree(_)), noSelfType, body)
7474

7575
val t = ClassDef(NoMods, name.stateMachineT, Nil, template)
7676
typecheckClassDef(t)

0 commit comments

Comments
 (0)