summaryrefslogblamecommitdiff
path: root/test/files/neg/overload-msg.check
blob: 780830bff95869d96b2d161fdb758bc469f24f73 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                         
overload-msg.scala:3: error: overloaded method value + with alternatives:
  (Double)Double <and>
  (Float)Float <and>
  (Long)Long <and>
  (scala.Int)scala.Int <and>
  (Char)scala.Int <and>
  (Short)scala.Int <and>
  (Byte)scala.Int <and>
  (java.lang.String)java.lang.String
 cannot be applied to (Int(in method f))
  def f[Int](y: Int) = x + y
                       ^
one error found