Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflicting constructor parameter and member variable name #7

Closed
erikkaplun opened this issue Nov 20, 2013 · 1 comment
Closed

Conflicting constructor parameter and member variable name #7

erikkaplun opened this issue Nov 20, 2013 · 1 comment

Comments

@erikkaplun
Copy link

this:

class Foo {
    private int bar;
    public Foo(int bar) {
        this.bar = bar * 2; // ok in Java
    }
}

gets converted to:

class Foo(bar: Int) {
    private val bar = bar * 2 // compiler complains that recursive val requires type
}
@erikkaplun
Copy link
Author

Migrated to timowest/scalagen#72

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant