IO: fix writer scope type
diff --git a/core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/WriterJob.kt b/core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/WriterJob.kt
index fb144ac..2031ae3 100644
--- a/core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/WriterJob.kt
+++ b/core/kotlinx-coroutines-io/src/main/kotlin/kotlinx/coroutines/experimental/io/WriterJob.kt
@@ -22,7 +22,7 @@
 
 fun writer(coroutineContext: CoroutineContext,
            channel: ByteChannel,
-           block: suspend CoroutineScope.() -> Unit): WriterJob {
+           block: suspend WriterScope.() -> Unit): WriterJob {
     val coroutine = WriterCoroutine(newCoroutineContext(coroutineContext), channel)
     coroutine.initParentJob(coroutineContext[Job])
     block.startCoroutine(coroutine, coroutine)
@@ -31,7 +31,7 @@
 
 fun writer(coroutineContext: CoroutineContext,
            autoFlush: Boolean = false,
-           block: suspend CoroutineScope.() -> Unit): WriterJob = writer(coroutineContext, ByteChannel(autoFlush), block)
+           block: suspend WriterScope.() -> Unit): WriterJob = writer(coroutineContext, ByteChannel(autoFlush), block)
 
 private class WriterCoroutine(ctx: CoroutineContext, channel: ByteChannel)
     : ByteChannelCoroutine(ctx, channel), WriterScope, WriterJob