damian
12/11/2016, 11:43 PMList
is allowed without specifying the type parameter) but Kotlin does not. Since List
is different than List<?>
, Nothing
is used to translate to a raw type (Nothing
doesn't exist in Java anyway). List<*>
(shorthand for List<out Any?>
) is how you'd express List<?>
in Java, and List<Nothing>
is how you'd express List
in Java.