Source.getLines中的默认参数出错(Scala 2.8.0 RC1)

def*_*foo 4 scala scala-2.8

假设我运行Scala 2.8.0 RC1,下面的scala代码应该打印出文件"c:/hello.txt"的内容

for ( line<-Source.fromPath( "c:/hello.txt" ).getLines )    
        println( line )
Run Code Online (Sandbox Code Playgroud)

但是,当我运行它时,我收到以下错误

<console>:10: error: missing arguments for method getLines in class Source;
follow this method with `_' if you want to treat it as a partially applied function
Error occured in an application involving default arguments.
       val it = Source.fromPath("c:/hello.scala").getLines
Run Code Online (Sandbox Code Playgroud)

根据我的理解,Scala应该使用默认参数"compat.Platform.EOL"作为"getLines".我想知道我是否做错了或者它是scala 2.8中的错误

谢谢

Dan*_*ral 5

getLines()改为编写,以便使用默认值.