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

Override methods can not have default values in Kotlin #90

Closed
angelolloqui opened this issue Feb 7, 2019 · 1 comment
Closed

Override methods can not have default values in Kotlin #90

angelolloqui opened this issue Feb 7, 2019 · 1 comment
Labels

Comments

@angelolloqui
Copy link
Owner

This code

class Test {
    override func dostuff(x: Int = 5) {
    }
}

gets transpiled as

class Test {
    
    override fun dostuff(x: Int = 5) {}
}

But that is not valid Kotlin for overriden methods. It should be:

class Test {
    
    override fun dostuff(x: Int) {}
}

@angelolloqui
Copy link
Owner Author

Fixed with #89

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

No branches or pull requests

1 participant