This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Inferring List[Any] #16
Closed
Description
While talking about a List(1, "X", 2.0)
which was inferred to be List[Any] but was a bug, @paulp wrote in #1:
@Blaisorblade If you have to tell the compiler so the compiler can tell you, I suggest cutting out the middleman.
I see why here (and probably elsewhere) inferring List[Any]
is inconvenient.
We should certainly consider a warning for this, and even @paulp's idea of not inferring Any: this is what this issue should be about.
Metadata
Metadata
Assignees
Labels
No labels