Jukka Siivonen
04/21/2021, 11:08 AMif (myNullable?.status in listOf(FOO, BAR)) { <myNullable not nullable here> }Joost Klitsie
04/21/2021, 11:12 AMJoost Klitsie
04/21/2021, 11:12 AMJoost Klitsie
04/21/2021, 11:13 AMRoukanken
04/21/2021, 11:14 AMJoost Klitsie
04/21/2021, 11:15 AMJoost Klitsie
04/21/2021, 11:15 AMRoukanken
04/21/2021, 11:16 AMdmitriy.novozhilov
04/21/2021, 12:19 PMcontains method. And also there are no method to check that real list implementation that came to in doesn't break contains contract. Imagine that some custom List implementation has some dummy implementation like operator fun contains(element: Any): Boolean = trueJukka Siivonen
04/21/2021, 6:13 PM