Closed
Description
import com.oracle.truffle.api.source.Source;
// works as expected, prints:
// source=test pos=5 len=0 line=1 col=6 identifier=test code=
System.out.println(Source.fromText("12345", "test").createSection("test", 1, 6, 5, 0));
// fails unexpectedly with:
// java.lang.IllegalArgumentException: column out of range
// the "out of range" check seems to be off by 1
System.out.println(Source.fromText("12345", "test").createSection("test", 1, 6, 0));
Metadata
Metadata
Assignees
Labels
No labels