Skip to content

parse kotlin code error ‘ (() -> Unit) ’ #1

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

Open
PAK2C opened this issue Feb 14, 2023 · 0 comments
Open

parse kotlin code error ‘ (() -> Unit) ’ #1

PAK2C opened this issue Feb 14, 2023 · 0 comments

Comments

@PAK2C
Copy link

PAK2C commented Feb 14, 2023

The following code will raise a ParserException,hope it can be fixed.

package com.test


class TestHandler {

    fun test() {
        val func = object :(() -> Unit) {
            override fun invoke() {
            }
        }
    }

}
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