Scala: Why does Seq.contains take an Any argument, instead of an argument of the sequence type?

Viewed 7079

So for example why does List(1,2,3,4).contains("wtf") even compile? Wouldn't it be nice if the compiler rejected this?

3 Answers
Related