X10 reading from a file not as expected

Description

I ran this code
val input = new File(inputFileName);
val inp = input.openRead();
Console.OUT.println(inp.lines().next());
if (inp.lines().hasNext())
Console.OUT.println(inp.lines().next());

on input file with this content
0 1
0 2
0 3
and obtained result
0 1
0 3
Apparently, inp.lines().hasNext() has caused a line to be skpped. Expected behavior:
0 1
0 2

Environment

None

Status

Assignee

Josh Milthorpe

Reporter

Marina Andric

Labels

None

External issue ID

None

Fix versions

Affects versions

X10 2.6.0

Priority

Medium
Configure