How can I make the compiler generate a warning for...
# compiler
a
How can I make the compiler generate a warning for this unused constructor argument to stop a build that has allWarningsAsErrors? It is a multiplatform module if that matters.
Copy code
internal class MyClass(
    private val myThingFactory: (String) -> String
) {
    fun createMyThing(s: String): String = createMyThing(s)
}
d
"Unused property" is not a compiler warning but an IDE inspection
a
ok, thanks, so not possible at the moment I assume
👌 1