https://kotlinlang.org logo
#intellij
Title
# intellij
v

vineethraj49

04/27/2020, 12:15 AM
does intellij (no longer?) warn about unused variables in companion objects? I seem to remember it doing so it does seem to work as expected with class methods and variables inside a function. aaaa! the class in the library is marked with
@Suppress("unused")
and that's being "carried forward", why?
a

Alexey Belkov [JB]

04/27/2020, 8:48 AM
The annotation is applied recursively. If the companion object is nested inside this class, it will be affected as well.
2 Views