tern icon indicating copy to clipboard operation
tern copied to clipboard

Child class object misses parent's constructor args

Open garex opened this issue 8 years ago • 0 comments

JS: Ecma 2016.

Actual

In code completion (I tried both eclipse plugin and atom ones) I able to see base class' constructor args, but not child. Child class is shown as it dont' has any args.

class Base {
  constructor(arg1) {
  }
}

class Child extends Base {}

new Base(arg1);
new Child();

Expected

To see parent's constructor args in child class:

new Child(arg1);

garex avatar May 12 '17 10:05 garex