We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722fd3d commit 19bfe3eCopy full SHA for 19bfe3e
keywords-Await/src/test/scala/com/thoughtworks/dsl/keywords/AwaitTest.scala
@@ -15,6 +15,18 @@ import scala.language.dynamics
15
import org.hamcrest.CoreMatchers.instanceOf
16
17
class AwaitTest {
18
+
19
+ @Test
20
+ def testReturnIf: Unit = {
21
+ val reified = reify {
22
+ if (true) {
23
+ !Return(!Await(Future(42)))
24
+ }
25
+ -1
26
27
+ assertEquals(42, result(reified.to[Future], Duration.Inf))
28
29
30
type Id[A] = A
31
32
@Test
0 commit comments