summaryrefslogtreecommitdiff
path: root/test/files/pos/t3252.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t3252.scala')
-rw-r--r--test/files/pos/t3252.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t3252.scala b/test/files/pos/t3252.scala
new file mode 100644
index 0000000000..4b8e862714
--- /dev/null
+++ b/test/files/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) = error("")
+}
+object B {
+ def h(block : => Unit) : Nothing = error("")
+} \ No newline at end of file