summaryrefslogtreecommitdiff
path: root/test/files/neg/sammy_overload.check
blob: 87b198f4f05f27e8334657bb753a18d8f768af0c (plain) (blame)
1
2
3
4
5
6
7
sammy_overload.scala:14: error: overloaded method value m with alternatives:
  (x: ToString)Int <and>
  (x: Int => String)Int
 cannot be applied to (Int => Int)
  O.m(x => x) // error expected: m cannot be applied to Int => Int
    ^
one error found