From 448c34d11bb9ad269072c8ede94a012749b47e5a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 20 May 2010 20:26:43 +0000 Subject: 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. --- test/files/pos/bug3252.scala | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/files/pos/bug3252.scala (limited to 'test/files/pos/bug3252.scala') 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 -- cgit v1.2.3