I'm kind of new to Kotlin and I'm trying to Inject a value (in this example it is just an Int but in the real code it is a Provider class) What am I doing wrong here? and why is x is an unresolved reference?
class Test
@Inject constructor(private val x: Int) {
companion object {
var y: Int = 0
@BeforeClass @JvmStatic
fun beforeClass() {
y = x * 2
}
}
}