From 37e30bfc84940c6aa6ca90cb3c10d0219f144c54 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Mon, 8 May 2017 10:34:26 +0200 Subject: [PATCH] Fix build failure After the recent changes to semantic names, `package +` is a valid name, just like with scalac. --- tests/neg/i2292.scala | 2 +- tests/pos/i2292.scala | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tests/pos/i2292.scala diff --git a/tests/neg/i2292.scala b/tests/neg/i2292.scala index 1d885bbdae60..2bc836a9b71d 100644 --- a/tests/neg/i2292.scala +++ b/tests/neg/i2292.scala @@ -1,3 +1,3 @@ -package + // error +package foo+ // error class Foo diff --git a/tests/pos/i2292.scala b/tests/pos/i2292.scala new file mode 100644 index 000000000000..008c78eb1efd --- /dev/null +++ b/tests/pos/i2292.scala @@ -0,0 +1,3 @@ +package + + +class Foo