summaryrefslogtreecommitdiff
path: root/test/files/pos/bug3252.scala
blob: 4b8e862714e8f9a0483321984c4f3a8bab21f518 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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("")
}