James
02/15/2019, 9:21 PMJames
02/15/2019, 9:21 PMsindrenm
02/19/2019, 11:38 AMkarelpeeters
02/19/2019, 11:39 AMkarelpeeters
02/19/2019, 11:39 AMsindrenm
02/19/2019, 11:40 AMsindrenm
02/19/2019, 11:40 AMsindrenm
02/19/2019, 11:43 AMdiesieben07
02/19/2019, 11:46 AMis Cat
is better for when you later add more subclasses to the sealed class. In that case you will get an "when is not exhaustive", instead of a failed smart-cast in the else. And your if (if (animal is Cat)
instead of !is Dog
) would still work just fine.sindrenm
02/19/2019, 11:50 AMelse
cases. So it's more of a question of why it's not supported instead of whether we should do it like that or not. simple smilediesieben07
02/19/2019, 11:50 AMsindrenm
02/19/2019, 11:51 AMShawn
02/19/2019, 11:51 AMsindrenm
02/19/2019, 11:51 AMShawn
02/19/2019, 11:51 AMsindrenm
02/19/2019, 11:52 AMsindrenm
02/19/2019, 11:52 AMamiracam
02/19/2019, 2:31 PMsnowe
02/19/2019, 3:36 PMNeal Sanche
02/19/2019, 8:07 PMParameter specified as non-null is null
. I'm guessing the Java code is not respecting it's own @NonNull annotations and sending a null for a parameter. This is a parameter of an interface definition, so it's an override fun
in Kotlin, and it won't let me make the parameter in question nullable. What do I do?karelpeeters
02/19/2019, 8:09 PMNeal Sanche
02/19/2019, 8:12 PMkarelpeeters
02/19/2019, 8:20 PM@Nullable
.Neal Sanche
02/19/2019, 8:21 PMkarelpeeters
02/19/2019, 8:24 PMNeal Sanche
02/19/2019, 8:26 PMjkbbwr
02/20/2019, 2:09 AM/home/jakob/.local/share/JetBrains/Toolbox/apps/Goland/ch-0/191.5532.53/bin
Gustav
02/20/2019, 6:22 AMGustav
02/20/2019, 6:32 AMJay
02/20/2019, 9:10 AM