summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/io/Source.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/io/Source.scala b/sources/scala/io/Source.scala
index 507088556b..65fced08e6 100644
--- a/sources/scala/io/Source.scala
+++ b/sources/scala/io/Source.scala
@@ -134,7 +134,7 @@ abstract class Source extends Iterator[Char] {
var i = 0;
while( it.hasNext
&& i < (line-1)
- && Character.LINE_SEPARATOR != it.next.getType ) {
+ && Character.LINE_SEPARATOR != Character.getType(it.next) ) {
i = i + 1
}
if(!it.hasNext) { // this should not happen