aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t3252.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t3252.scala')
-rw-r--r--tests/pos/t3252.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pos/t3252.scala b/tests/pos/t3252.scala
new file mode 100644
index 000000000..3ecc1e7ce
--- /dev/null
+++ b/tests/pos/t3252.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) = sys.error("")
+}
+object B {
+ def h(block : => Unit) : Nothing = sys.error("")
+}