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

As a developer I want another case of type inference supported by the poly processor #2436

Open
mmews-n4 opened this issue Sep 23, 2022 · 0 comments

Comments

@mmews-n4
Copy link

Example

class G<T> {
}
class X {
    public static field : G<?>;
}
class Y extends X {
    // XPECT noerrors --> "Type of static field Y.field must equal type of overridden static field X.field" at "field"
    @Override
    public static field = new G<string>;
}

Current workaround is to annotate the type from the superclass:
public static field : G<?> = new G<string>;

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

No branches or pull requests

1 participant