summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.sbt1
-rwxr-xr-x[-rw-r--r--]scripts/stability-test.sh0
-rw-r--r--test/files/run/t9841.scala12
3 files changed, 13 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 3ceff35b45..76ffe52728 100644
--- a/build.sbt
+++ b/build.sbt
@@ -556,6 +556,7 @@ lazy val junit = project.in(file("test") / "junit")
.settings(disablePublishing: _*)
.settings(
fork in Test := true,
+ javaOptions in Test += "-Xss5M",
libraryDependencies ++= Seq(junitDep, junitInterfaceDep, jolDep),
testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
testFrameworks -= new TestFramework("org.scalacheck.ScalaCheckFramework"),
diff --git a/scripts/stability-test.sh b/scripts/stability-test.sh
index f017ac0842..f017ac0842 100644..100755
--- a/scripts/stability-test.sh
+++ b/scripts/stability-test.sh
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
+}