summaryrefslogtreecommitdiff
path: root/test/files/neg/overload-msg.check
blob: c61ace0dd0a311c3c7b3669f98fa4337d59567ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
overload-msg.scala:3: error: overloaded method value + with alternatives:
  (x: Double)Double <and>
  (x: Float)Float <and>
  (x: Long)Long <and>
  (x: scala.Int)scala.Int <and>
  (x: Char)scala.Int <and>
  (x: Short)scala.Int <and>
  (x: Byte)scala.Int <and>
  (x: String)String
 cannot be applied to (Int(in method f))
  def f[Int](y: Int) = x + y
                         ^
one error found