timowest/scalagen

Constructor argument should inherit visibility from field

dnadolny opened this issue · 1 comments

Java:

class C {
    private final int a;
    public C(int a) {
        this.a = a;
    }
}

gets converted to:

class C(val a: Int)

but the val a: Int should really be private val a: Int, since in the Java code the field was private.

Released in 0.3.1