https://kotlinlang.org logo
e

elect

05/14/2021, 5:31 AM
is it normal that if I want to implement the following gradle interface
Copy code
public interface ArtifactRepository {
    String getName();
    void setName(String name);
I cant use a
override var name: String
, but I'm forced to
Copy code
class GithubArtifactRepository : ArtifactRepository {
    private var n = "github"
    override fun getName(): String = n
    override fun setName(name: String) { n = name }
e

elect

05/14/2021, 6:18 AM
shit, I totatlly forgot that, I even voted it a long time ago 🙂 thanks!
2 Views