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

[jvm]: : Duplicate field on class ...: <init> ()V #9548

Closed
ianharrigan opened this issue Jun 9, 2020 · 0 comments
Closed

[jvm]: : Duplicate field on class ...: <init> ()V #9548

ianharrigan opened this issue Jun 9, 2020 · 0 comments
Labels
bug platform-jvm Everything related to JVM

Comments

@ianharrigan
Copy link

ianharrigan commented Jun 9, 2020

It seems that, in the jvm target, when you have a class hierarchy and without two or more constructors the compiler errors with something along the lines of:

Duplicate field on class haxe.ui.ComponentBounds: <init> ()V

Example:

class ComponentBase {
    public function new() {
    }
}

class ComponentImpl extends ComponentBase {
}

class ComponentBounds extends ComponentImpl {
    /* Uncommenting this will fix the issue
    public function new() {
        super();
    }
    */
}

class Component extends ComponentBounds {
    public function new() {
        super();
    }
}

haxe version: 4.1.1

@nadako nadako added bug platform-jvm Everything related to JVM labels Jun 9, 2020
@RealyUniqueName RealyUniqueName added this to the Bugs milestone Jun 9, 2020
@Simn Simn closed this as completed in 0cc9fff Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform-jvm Everything related to JVM
Projects
None yet
Development

No branches or pull requests

3 participants