Skip to content

Commit 6b7ab22

Browse files
committed
Fix type casts for Scala 2.11.
1 parent 5d11d2c commit 6b7ab22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests-shared/src/main/scala/org/scalajs/dom/tests/shared/BrowserTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trait BrowserTests {
3030
start = js.defined({ (controller: ReadableStreamController[Tuna]) =>
3131
controller.enqueue(Tuna("blue"))
3232
controller.enqueue(Tuna("red"))
33-
controller.close()
33+
controller.close(): Unit | js.Promise[Unit]
3434
}): js.UndefOr[js.Function1[ReadableStreamController[Tuna], Unit | js.Promise[Unit]]]
3535
}
3636
)

0 commit comments

Comments
 (0)