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

Java Enums used in declaration are rendered as Any #2646

Closed
IgnatBeresnev opened this issue Aug 29, 2022 · 0 comments · Fixed by #2647
Closed

Java Enums used in declaration are rendered as Any #2646

IgnatBeresnev opened this issue Aug 29, 2022 · 0 comments · Fixed by #2647
Assignees
Labels

Comments

@IgnatBeresnev
Copy link
Member

public JavaEnum returningEnumType() is rendered as fun returningEnumType(): Any

Reproducer:

// same package

// File 1: JavaEnum.java
public enum JavaEnum {
    FOO, BAR
}

// File 2: ContainingEnumType.java
public class ContainingEnumType {

    public JavaEnum returningEnumType() {
        return null;
    }

    public JavaEnum[] returningEnumTypeArray() {
        return null;
    }

    public void acceptingEnumType(JavaEnum javaEnum) {}
}

Screenshot

2022-08-29_21-03-44

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

Successfully merging a pull request may close this issue.

1 participant