From f7a315adf63fdac2a7f95f87b88e03d4139af863 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Wed, 18 Sep 2013 07:48:57 -0700 Subject: SI-7854, SI-6768 better parsing/positioning in parser The parser hole I found while working on the generated positions serves as the umbrella for a host of improvements. Upgraded positions assigned during some specific challenging situations mostly involving the creation of synthetic trees, e.g. for comprehensions and closures. While doing so improved some error messages. Eliminated some of the most glaring duplication in the parser. It's written like there is some payoff associated with being spectacularly imperative. Not so far. --- test/files/pos/t7854.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/files/pos/t7854.scala (limited to 'test/files/pos/t7854.scala') diff --git a/test/files/pos/t7854.scala b/test/files/pos/t7854.scala new file mode 100644 index 0000000000..d4de7dfe38 --- /dev/null +++ b/test/files/pos/t7854.scala @@ -0,0 +1,5 @@ +class A { + var f: Int => Unit = _ => () + + f = null +} -- cgit v1.2.3