desseim
10/29/2015, 2:36 PMList<*>
at runtime, and although List<Something>::class.java
is a compilation error to make it explicit, through the inline function it compiles, hiding the fact that the type will be erased to the user.
I think it should be a compile error in both cases, unless there’s a limitation wrt to functions which would justify it (in which case at least a warning would be nice imo).