diff options
Diffstat (limited to 'test/files/neg/sammy_overload.check')
-rw-r--r-- | test/files/neg/sammy_overload.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/sammy_overload.check b/test/files/neg/sammy_overload.check new file mode 100644 index 0000000000..87b198f4f0 --- /dev/null +++ b/test/files/neg/sammy_overload.check @@ -0,0 +1,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 |