Xad Kile
11/22/2022, 8:34 AMSam
11/22/2022, 8:41 AMXad Kile
11/22/2022, 8:47 AMKlitos Kyriacou
11/22/2022, 8:57 AMArrayDeque implements MutableList (and therefore also List). But in Java, ArrayDeque implements Deque and Queue but not List.
That sounds like a problem if a Java method calls a method that it expects to return a List. If the called method is written in Kotlin, it can return an ArrayDeque (because that's a List in Kotlin) but when Java gets it, it won't be a Java List.Sam
11/22/2022, 9:00 AMArrayDeque and the Kotlin ArrayDeque are actually two separate classes. They’re not aliases for one another like ArrayList would be.Xad Kile
11/22/2022, 9:00 AMephemient
11/22/2022, 12:52 PMkotlin.collections.ArrayList == java.util.ArrayList etc., but there's only a limited number of types for which that aliasing takes placeJacob
11/22/2022, 3:52 PMephemient
11/22/2022, 4:08 PMMichael de Kaste
11/22/2022, 4:57 PM