Constructor argument should inherit visibility from field #57

dnadolny opened this Issue Jun 18, 2013 · 1 comment

2 participants



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.

@timowest timowest added a commit that referenced this issue Jun 20, 2013
@timowest #57 Fix field modifiers copying c5f421b

Released in 0.3.1

@timowest timowest closed this Sep 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment