2006-02-10 00:26:09 +08:00
|
|
|
bug521.scala:12 error: class PlainFile needs to be abstract, since method path in class AbstractFile of type => java.lang.String is not defined
|
2006-02-10 21:22:13 +08:00
|
|
|
class PlainFile(val file : File) extends AbstractFile {}
|
2006-02-10 00:26:09 +08:00
|
|
|
^
|
|
|
|
bug521.scala:21 error: error overriding value file in class PlainFile of type => java.io.File;
|
|
|
|
value file needs `override' modifier
|
2006-02-10 21:22:13 +08:00
|
|
|
final class ZipArchive(val file : File, archive : ZipFile) extends PlainFile(file) {
|
2006-02-10 00:26:09 +08:00
|
|
|
^
|
|
|
|
bug521.scala:21 error: class ZipArchive needs to be abstract, since method path in class AbstractFile of type => java.lang.String is not defined
|
2006-02-10 21:22:13 +08:00
|
|
|
final class ZipArchive(val file : File, archive : ZipFile) extends PlainFile(file) {
|
2006-02-10 00:26:09 +08:00
|
|
|
^
|
|
|
|
bug521.scala:23 error: error overriding value path in class VirtualFile of type => java.lang.String;
|
|
|
|
method path needs to be an immutable value
|
2006-02-10 21:22:13 +08:00
|
|
|
override def path = "";
|
2006-02-10 00:26:09 +08:00
|
|
|
^
|
|
|
|
four errors found
|