summaryrefslogtreecommitdiff
path: root/test/pos/bug217.scala
blob: 15a9f16a1be39c33a35a48c0277af96f6914a8d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
object Test {

  def foo[t](fun: Function0[t]): t = fun();

  def bar(x: Int): Unit = {
    foo(() => 0);
    ()
  }

  def main(args: Array[String]): Unit = bar(32);

}