diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/viewtest.check | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/files/neg/viewtest.check b/test/files/neg/viewtest.check index 21ed93a01c..a93f803fe2 100644 --- a/test/files/neg/viewtest.check +++ b/test/files/neg/viewtest.check @@ -3,4 +3,10 @@ viewtest.scala:43: error: type mismatch; required: List[a(in method view3)] case y1: List[a] => compareLists(x, y1) ^ -one error found +viewtest.scala:104: error: ambiguous implicit values: + both method view4 in object O of type [a](x: a)a + and method identity in object Predef of type [A](x: A)A + match expected type (test.Str) => test.Ordered[test.Str] + t = t insert Str(s) + ^ +two errors found |