Skip to content

Commit 04b9a04

Browse files
committed
Fix decision about whether to use a trait or class as the parent
1 parent 1fe789a commit 04b9a04

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
@@ -50,7 +50,7 @@ trait AsyncTransform {
5050
}
5151

5252
val customParents = futureSystemOps.stateMachineClassParents
53-
val tycon = if (customParents.exists(!_.typeSymbol.asClass.isTrait)) {
53+
val tycon = if (customParents.forall(_.typeSymbol.asClass.isTrait)) {
5454
// prefer extending a class to reduce the class file size of the state machine.
5555
symbolOf[scala.runtime.AbstractFunction1[Any, Any]]
5656
} else {

0 commit comments

Comments
 (0)