summaryrefslogtreecommitdiff
path: root/test/files/neg/t4728.check
blob: c6ef182d34f1a8c45354e1852be0e1043889bd8e (plain) (blame)
1
2
3
4
5
6
7
t4728.scala:10: error: ambiguous reference to overloaded definition,
both method f in object Ambiguous of type (ys: Y*)Int
and  method f in object Ambiguous of type (x: X)Int
match argument types (Y) and expected result type Any
  println(Ambiguous.f(new Y))
                    ^
one error found