What if make T always 'definitely not-null' and therefore break BC, unfortunately. But It would make Kotlin generic and non-generic type notations consistent. // In both functions these statements would be correct // [a] is definitely not nullable // [b] is definitely not nullable // [...
Working withFileChange#getChangeTypeis particularly annoying in Kotlin. It is very useful to be able to use an exhaustive-when if handling enums. However, if the enum is nullable then it's very difficult to avoid a warning about handling the potential null case. importorg.gradle.api.Default...
java.lang.AssertionError: Exception. Test failed on activity execution with java.lang.NullPointerException: Parameter specified as non-null is null: method org.hyperskill.stopwatch.StopwatchViewState.$$robo$$org_hyperskill_stopwatch_StopwatchViewState$__constructor__, parameter elapsed java.lang.NullPo...
import kotlin.math.ceil import kotlin.properties.Delegates import me.proton.core.presentation.R as CoreR /** * Implements the common part of server and country item row, the one with features, server load and buttons. Expand Down Expand Up @@ -92,7 +93,7 @@ class ServerRowFeaturesAndButt...
❌ null-assertion operator - This one doesn't make sense to me. Since "assert" means the condition is true, but it's the opposite in this case. I guess unless your goal is to throw an exception. 🧡 non-null assertion operator - I like this. It's familiar to Kotlin developers an...
[DS-4464] fixed duplicated dependency [DS-4464] changed findLanguageById to direct language Instance, added dependency to markdown and kotlin.compiler.common [DS-4464] changed language fields type to non-nullable [DS-4464] changed IntervalInfo language param type to non-nullable and moved !! a...