karelpeeters
09/19/2018, 9:17 AMclass Test(val a: Int)
is a shorthand for "A class Test with a property a
and a constructor with a single parameter a
that sets the property to the passed value." The warning is saying that you never use the property part of this shorthand, only the constructor argument part.