Java has raw types (e.g. `List` is allowed without...
# announcements
d
Java has raw types (e.g.
List
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.
K 1