summaryrefslogtreecommitdiff
path: root/test/files/pos/t8359-closelim-crash.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2016-02-04 11:38:41 +1000
committerJason Zaugg <jzaugg@gmail.com>2016-02-04 11:38:41 +1000
commit288d4ef1509160b21134e3ddacca5ee8311919ba (patch)
treeb7b335b7f26bf6dbcda43d024c554eb06cbd97f1 /test/files/pos/t8359-closelim-crash.scala
parentda46355a90442636ee7634c31a69eae8e8b9cd42 (diff)
parent333187a7c020b7d51d68c5435852305e70d89d41 (diff)
downloadscala-288d4ef1509160b21134e3ddacca5ee8311919ba.tar.gz
scala-288d4ef1509160b21134e3ddacca5ee8311919ba.tar.bz2
scala-288d4ef1509160b21134e3ddacca5ee8311919ba.zip
Merge remote-tracking branch 'origin/2.12.x' into merge/2.11.x-to-2.12.x-20160203
Diffstat (limited to 'test/files/pos/t8359-closelim-crash.scala')
-rw-r--r--test/files/pos/t8359-closelim-crash.scala23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/files/pos/t8359-closelim-crash.scala b/test/files/pos/t8359-closelim-crash.scala
deleted file mode 100644
index 1413694d10..0000000000
--- a/test/files/pos/t8359-closelim-crash.scala
+++ /dev/null
@@ -1,23 +0,0 @@
-package test
-
-// This is a minimization of code that crashed the compiler during bootstrapping
-// in the first iteration of https://github.com/scala/scala/pull/4373, the PR
-// that adjusted the order of free and declared params in LambdaLift.
-
-// Was:
-// java.lang.AssertionError: assertion failed:
-// Record Record(<$anon: Function1>,Map(value a$1 -> Deref(LocalVar(value b)))) does not contain a field value b$1
-// at scala.tools.nsc.Global.assert(Global.scala:262)
-// at scala.tools.nsc.backend.icode.analysis.CopyPropagation$copyLattice$State.getFieldNonRecordValue(CopyPropagation.scala:113)
-// at scala.tools.nsc.backend.icode.analysis.CopyPropagation$copyLattice$State.getFieldNonRecordValue(CopyPropagation.scala:122)
-// at scala.tools.nsc.backend.opt.ClosureElimination$ClosureElim$$anonfun$analyzeMethod$1$$anonfun$apply$2.replaceFieldAccess$1(ClosureElimination.scala:124)
-class Typer {
- def bar(a: Boolean, b: Boolean): Unit = {
- @inline
- def baz(): Unit = {
- ((_: Any) => (Typer.this, a, b)).apply("")
- }
- ((_: Any) => baz()).apply("")
- }
-}
-