Silently inferring List[Any] is like a null reference. The error that you get told about is in a different place to where the problem that you need to fix is. In this case, the static type system could have been more helpful.
There have been attempts to fix this - WartRemover specifically has a Wart for any uses of Any for example.