File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/scala/scala/async/internal Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ trait FutureSystem {
7777
7878 def freshenAllNames : Boolean = false
7979 def emitTryCatch : Boolean = true
80+ def resultFieldName : String = " result"
8081}
8182
8283object ScalaConcurrentFutureSystem extends FutureSystem {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ private[async] trait TransformUtils {
2525 val completed = newTermName(" completed" )
2626
2727 val state = newTermName(" state" )
28- val result = newTermName(" result " )
28+ val result = newTermName(self.futureSystem.resultFieldName )
2929 val execContext = newTermName(" execContext" )
3030 val tr = newTermName(" tr" )
3131 val t = newTermName(" throwable" )
@@ -38,7 +38,7 @@ private[async] trait TransformUtils {
3838 def completed = maybeFresh(baseNames.completed)
3939
4040 val state = maybeFresh(baseNames.state)
41- val result = maybeFresh( baseNames.result)
41+ val result = baseNames.result
4242 val execContext = maybeFresh(baseNames.execContext)
4343 val tr = maybeFresh(baseNames.tr)
4444 val t = maybeFresh(baseNames.t)
You can’t perform that action at this time.
0 commit comments