Skip to content

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

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

Closed
smarter opened this issue Oct 27, 2015 · 0 comments

Comments

@smarter
Copy link
Member

smarter commented Oct 27, 2015

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

odersky added a commit to dotty-staging/dotty that referenced this issue Oct 30, 2015
Don't insert a constructor call when typechecking Java classes.
OlivierBlanvillain pushed a commit to OlivierBlanvillain/dotty that referenced this issue Dec 12, 2016
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

2 participants