summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-08-17 15:58:07 -0700
committerSom Snytt <som.snytt@gmail.com>2016-08-17 16:12:32 -0700
commitaa0f42befe8e13faa60d40bf01c2165b974b27b6 (patch)
tree05613577f65fe99552ca59a1b8661b5d5a913caf /test
parentb8e4d1f692c5712990b45f50625627015112df32 (diff)
downloadscala-aa0f42befe8e13faa60d40bf01c2165b974b27b6.tar.gz
scala-aa0f42befe8e13faa60d40bf01c2165b974b27b6.tar.bz2
scala-aa0f42befe8e13faa60d40bf01c2165b974b27b6.zip
SI-9841 Progression test for SO on init
Test as reported in ticket. Works on 2.12.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t9841.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t9841.scala b/test/files/run/t9841.scala
new file mode 100644
index 0000000000..2f7642ed03
--- /dev/null
+++ b/test/files/run/t9841.scala
@@ -0,0 +1,12 @@
+
+class Container {
+ private case class Inner(s: String)
+ private object Inner {
+ val Empty = Inner("")
+ }
+ private val state = Inner.Empty
+}
+
+object Test extends App {
+ new Container
+}