diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-10-10 12:02:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 12:02:54 -0500 |
commit | 876401bbe7071083325e33c902e94abd93b0b60b (patch) | |
tree | 6726a261e6e8a1ab2d9cee7b9053d915b0aa9908 /test/files/run/t9946a.scala | |
parent | ada6b6b67a0ee3fd4e8251d22abce1cdd6cbb931 (diff) | |
parent | ef14a9af16d988e6240c8a3943fa3df84ee42606 (diff) | |
download | scala-876401bbe7071083325e33c902e94abd93b0b60b.tar.gz scala-876401bbe7071083325e33c902e94abd93b0b60b.tar.bz2 scala-876401bbe7071083325e33c902e94abd93b0b60b.zip |
Merge pull request #5445 from retronym/ticket/9946b
SI-9946 Fix regressions with nullification of singly used fields
Diffstat (limited to 'test/files/run/t9946a.scala')
-rw-r--r-- | test/files/run/t9946a.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/t9946a.scala b/test/files/run/t9946a.scala new file mode 100644 index 0000000000..491fb31f7b --- /dev/null +++ b/test/files/run/t9946a.scala @@ -0,0 +1,14 @@ +package p1 { + object O { + private case class N(a: Any) + lazy val x: AnyRef = N + lazy val y: AnyRef = new { assert(N != null) } + } +} + +object Test { + def main(args: Array[String]): Unit = { + p1.O.x + p1.O.y + } +} |