From 83f49b9bebb04a55a45722594e717d95468924ac Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 15 Jul 2004 16:20:37 +0000 Subject: *** empty log message *** --- test/files/pos/bug287.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/files/pos/bug287.scala (limited to 'test/files/pos/bug287.scala') diff --git a/test/files/pos/bug287.scala b/test/files/pos/bug287.scala new file mode 100644 index 0000000000..81a01951b2 --- /dev/null +++ b/test/files/pos/bug287.scala @@ -0,0 +1,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 + } + } +} -- cgit v1.2.3