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 1fe789a commit 04b9a04Copy full SHA for 04b9a04
src/main/scala/scala/async/internal/AsyncTransform.scala
@@ -50,7 +50,7 @@ trait AsyncTransform {
50
}
51
52
val customParents = futureSystemOps.stateMachineClassParents
53
- val tycon = if (customParents.exists(!_.typeSymbol.asClass.isTrait)) {
+ val tycon = if (customParents.forall(_.typeSymbol.asClass.isTrait)) {
54
// prefer extending a class to reduce the class file size of the state machine.
55
symbolOf[scala.runtime.AbstractFunction1[Any, Any]]
56
} else {
0 commit comments