Robert Jaros
06/01/2024, 6:22 PMundefined
changed in Kotlin 2.0.0? The compiler gives me SENSELESS_COMPARISON
warning when comparing an object of not nullable type with undefined
.turansky
06/01/2024, 6:35 PMRobert Jaros
06/01/2024, 6:42 PMRobert Jaros
06/01/2024, 6:43 PMRobert Jaros
06/01/2024, 6:43 PMundefined
the warning is gone but the function doesn't work correctly.turansky
06/01/2024, 6:58 PMRobert Jaros
06/01/2024, 6:59 PMturansky
06/01/2024, 6:59 PMturansky
06/01/2024, 7:00 PMRobert Jaros
06/01/2024, 7:02 PMRobert Jaros
06/01/2024, 7:04 PMRobert Jaros
06/01/2024, 7:11 PMundefined
comparisons are correct or not. When I see that the compiler is definitely wrong in one place, I prefer to trust that I wrote the right code in other places.turansky
06/01/2024, 9:17 PMthis == null
It will check both null
and undefined
Edoardo Luppi
06/02/2024, 6:27 PMRobert Jaros
06/02/2024, 7:08 PMEdoardo Luppi
06/02/2024, 7:11 PMEdoardo Luppi
06/02/2024, 7:12 PMRobert Jaros
06/02/2024, 7:13 PMEdoardo Luppi
06/02/2024, 7:15 PM