From 560107979346d944ec26fedaf18d79398e519060 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Wed, 8 Aug 2018 18:20:53 +0200 Subject: [PATCH] Fix #1287: Add regression test --- tests/pos/i1287/Foo.scala | 3 +++ tests/pos/i1287/Test.scala | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/pos/i1287/Foo.scala create mode 100644 tests/pos/i1287/Test.scala diff --git a/tests/pos/i1287/Foo.scala b/tests/pos/i1287/Foo.scala new file mode 100644 index 000000000000..ba1d6ccd00c5 --- /dev/null +++ b/tests/pos/i1287/Foo.scala @@ -0,0 +1,3 @@ +private object Foo { + val x: Int = 1 +} diff --git a/tests/pos/i1287/Test.scala b/tests/pos/i1287/Test.scala new file mode 100644 index 000000000000..cccdc83c3f3a --- /dev/null +++ b/tests/pos/i1287/Test.scala @@ -0,0 +1,3 @@ +object Test { + val a = Foo.x +}