https://kotlinlang.org logo
n

napperley

06/07/2020, 3:53 AM
IntelliJ is showing false positives on unused elements even though one can position the carrot on a unused element, press Ctrl+B, and find the location where the unused element is being used.
🥕 1
s

Sinan Kozak

06/07/2020, 8:15 AM
Correct me if I am wrong. ListItems doesn't looks like unused. AddItem and deleteItem vals look like unused assignments
n

napperley

06/08/2020, 12:31 AM
Refer to the next thread.
s

Sinan Kozak

06/08/2020, 9:48 AM
If you are referring the extension function. It is probably that method doesn't use any fields or methods from the extended class
a

Alexey Belkov [JB]

06/08/2020, 10:42 AM
Thank you, created https://youtrack.jetbrains.com/issue/KT-39454. This is not reproduced in 1.4-M2 IDE plugin.
👍 1
n

napperley

06/08/2020, 11:37 PM
Good to know. So this should mean that the issue won't be present by the time the stable version of the Kotlin 1.4 plugin arrives.