Skip to content

Error when typechecking Java class where the superclass constructor has arguments #879

Closed
@smarter

Description

@smarter
class Foo {
  Foo(int i) {
  }
}


class Bar extends Foo {
  Bar() {
    super(10);
  }
}
cons.java:7: error: missing argument for parameter i of constructor Foo: (i: Int)Foo
class Bar extends Foo {
                  ^

(minimized from https://github.com/molecule-labs/molecule/blob/master/molecule-core/src/main/java/molecule/jsr166y/ForkJoinTask.java#L397)

CC @olhotak

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions