diff options
Diffstat (limited to 'tests/pending/pos/t3252.scala')
-rw-r--r-- | tests/pending/pos/t3252.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/pending/pos/t3252.scala b/tests/pending/pos/t3252.scala new file mode 100644 index 000000000..3ecc1e7ce --- /dev/null +++ b/tests/pending/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("") +} |