bug521.check
来自「JAVA 语言的函数式编程扩展」· CHECK 代码 · 共 16 行
CHECK
16 行
bug521.scala:10: error: class PlainFile needs to be abstract, since method path in class AbstractFile of type => String is not definedclass PlainFile(val file : File) extends AbstractFile {} ^bug521.scala:13: error: error overriding value file in class PlainFile of type java.io.File; value file needs `override' modifierfinal class ZipArchive(val file : File, archive : ZipFile) extends PlainFile(file) { ^bug521.scala:13: error: class ZipArchive needs to be abstract, since method path in class AbstractFile of type => String is not definedfinal class ZipArchive(val file : File, archive : ZipFile) extends PlainFile(file) { ^bug521.scala:15: error: error overriding value path in class VirtualFile of type String; method path needs to be an immutable value override def path = ""; ^four errors found
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?