summaryrefslogtreecommitdiff
path: root/test/files/pos/bug3430.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/bug3430.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/bug3430.scala')
-rw-r--r--test/files/pos/bug3430.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/pos/bug3430.scala b/test/files/pos/bug3430.scala
new file mode 100644
index 0000000000..3129c6276a
--- /dev/null
+++ b/test/files/pos/bug3430.scala
@@ -0,0 +1,13 @@
+// package com.example
+
+object A {
+ def f1(f: String => Boolean) = f("a")
+
+ def f2(): Boolean =
+ f1 { s1 =>
+ f1 { s2 =>
+ while (true) { }
+ true
+ }
+ }
+} \ No newline at end of file