stdlib/streams: Streamable now working on any Text type instead of just String.
[nit.git] / lib / filter_stream.nit
index 66366c6..a32c288 100644 (file)
@@ -14,7 +14,7 @@
 class FilterIStream
        super IStream
        # Filter readed elements
-       readable var _stream: nullable IStream
+       readable var _stream: nullable IStream = null
 
        redef fun eof: Bool
        do
@@ -31,7 +31,7 @@ end
 class FilterOStream
        super OStream
        # Filter outputed elements
-       readable var _stream: nullable OStream
+       readable var _stream: nullable OStream = null
 
        # Can the stream be used to write
        redef fun is_writable: Bool
@@ -116,7 +116,7 @@ class StreamDemux
                end
        end
 
-       redef fun write(s: String)
+       redef fun write(s: Text)
        do
                for i in _streams
                do