summaryrefslogtreecommitdiff
path: root/test/files/pos/bug3252.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-05-20 20:26:43 +0000
committerPaul Phillips <paulp@improving.org>2010-05-20 20:26:43 +0000
commit448c34d11bb9ad269072c8ede94a012749b47e5a (patch)
tree7b9e4327d0b72b1ca2d81208d41781a65c6c3bad /test/files/pos/bug3252.scala
parent9dae73d4cd606a2ad2336574d3f2498046e2b8f0 (diff)
downloadscala-448c34d11bb9ad269072c8ede94a012749b47e5a.tar.gz
scala-448c34d11bb9ad269072c8ede94a012749b47e5a.tar.bz2
scala-448c34d11bb9ad269072c8ede94a012749b47e5a.zip
Make the inliner be more careful about where it...
Make the inliner be more careful about where it pokes around. Closes #3252, #3430. Review by dragos.
Diffstat (limited to 'test/files/pos/bug3252.scala')
-rw-r--r--test/files/pos/bug3252.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/bug3252.scala b/test/files/pos/bug3252.scala
new file mode 100644
index 0000000000..4b8e862714
--- /dev/null
+++ b/test/files/pos/bug3252.scala
@@ -0,0 +1,15 @@
+class A {
+ def f(x : Boolean) : Thread = {
+ g {
+ x match {
+ case false =>
+ B.h { }
+ }
+ }
+ }
+
+ private def g[T](block : => T) = error("")
+}
+object B {
+ def h(block : => Unit) : Nothing = error("")
+} \ No newline at end of file