Skip to content

2.0.0-alpha-2: Inheritance Method problem #184

@KaiHufenbach

Description

@KaiHufenbach

After updating to the latest version I am experiencing serious issues on method search:

A.js:

class A {

  render(){
    console.log(this.getContent());
  }
}

export default A;

B.js:

import A from './A';

class B extends A {
  getContent(){
    return 'hooray';
  }
}

export default B;

now trying to invoke:

let b = new B();
b.render();

throws:
image

Even more confusing:

...
b.getContent();

throws the same exception.

The method is not accessable as long as B extends A. Just remove ... extends A ... then b.getContent can be accessed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions