summaryrefslogtreecommitdiff
path: root/test/files/pos/bug245.scala
blob: 3e5dee820b4f3bf69cd951cd325eadc08c25b03e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Value {
  def coerce: Int = 0;
}

object Test {

  def foo(i: Int): Int = 0;

  def fun0         : Value = null;
  def fun0(i: Int ): Value = null;

  def fun1(i: Int ): Value = null;
  def fun1(l: Long): Value = null;

  foo(fun0           );
  foo(fun1(new Value));

}