Skip to content

Commit 0ae26b7

Browse files
committed
Add a dispatch ops test too to ensure no ambiguity
1 parent 5ae4a64 commit 0ae26b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

util/src/test/scala/japgolly/scalajs/react/util/SyntaxCompilationTest.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,13 @@ trait SyntaxCompilationTest {
2323
i + j
2424
}
2525

26+
def dispatch[F[_]: Effect.Dispatch](f: F[Int]) =
27+
for {
28+
i <- f
29+
j <- f
30+
} yield {
31+
val _ = f.dispatch()
32+
i + j
33+
}
34+
2635
}

0 commit comments

Comments
 (0)