From d00572d159a3a15664afbf09d1ff914df4d2c512 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 25 Jun 2015 12:01:32 +0200 Subject: Avoid crasher when first token of a program is in error This used to give a crash in SourcePositiom, promoted by feeding its calculations with a negative offset. --- tests/neg/firstError.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 tests/neg/firstError.scala (limited to 'tests/neg/firstError.scala') diff --git a/tests/neg/firstError.scala b/tests/neg/firstError.scala new file mode 100644 index 000000000..317adcced --- /dev/null +++ b/tests/neg/firstError.scala @@ -0,0 +1,4 @@ +. + +\u890u3084eu + -- cgit v1.2.3