의 기본 인수에 오류가 있습니다. 다음 스칼라 코드는 "c : /hello.txt"파일의 내용을 인쇄해야합니다.Source.getLines (Scala 2.8.0 RC1)
나는 그것을 실행할 때for (line<-Source.fromPath("c:/hello.txt").getLines)
println(line)
그러나, 나는 다음과 같은 오류를 얻을
<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
내가 이해에서, 스칼라는 "getLines"에 대한 기본 인수 "compat.Platform.EOL"를 사용합니다. 내가 잘못했다거나 기본값이 사용됩니다 있도록이 대신 2.8
감사