aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/scala/async/internal/TransformUtils.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/scala/async/internal/TransformUtils.scala')
-rw-r--r--src/main/scala/scala/async/internal/TransformUtils.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/scala/async/internal/TransformUtils.scala b/src/main/scala/scala/async/internal/TransformUtils.scala
index 1c0b625..1720815 100644
--- a/src/main/scala/scala/async/internal/TransformUtils.scala
+++ b/src/main/scala/scala/async/internal/TransformUtils.scala
@@ -25,7 +25,7 @@ private[async] trait TransformUtils {
val completed = newTermName("completed")
val state = newTermName("state")
- val result = newTermName("result")
+ val result = newTermName(self.futureSystem.resultFieldName)
val execContext = newTermName("execContext")
val tr = newTermName("tr")
val t = newTermName("throwable")
@@ -38,7 +38,7 @@ private[async] trait TransformUtils {
def completed = maybeFresh(baseNames.completed)
val state = maybeFresh(baseNames.state)
- val result = maybeFresh(baseNames.result)
+ val result = baseNames.result
val execContext = maybeFresh(baseNames.execContext)
val tr = maybeFresh(baseNames.tr)
val t = maybeFresh(baseNames.t)