aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t287.scala
blob: 8e5e8831c14495e6c994d3649ec13ae9be7f46f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                  
object testBuf {
  class mystream extends java.io.BufferedOutputStream(new java.io.FileOutputStream("/dev/null")) {
    def w( x:String ):Unit = {
      val foo = new Array[Byte](2);

      // write( byte[] ) is defined in FilterOutputStream, the superclass of BufferedOutputStream
      super.write( foo ); // error

      super.write( foo, 0, foo.length ); // this works however
    }
  }
}