You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When class A and class C extends B, we expect output in console.log(this.constructor.name) in B class it's always 'A' (if we call a.method()) and 'C' if we call c.method.
Actual Behaviour:
if i call c.method(), it prints "A" (if a and c extends b).
Stack Trace/Error Message:
not necessary
Code
abstract class B{
public abstract getName();
@dispatch()
public doAction(){
console.log(this.getName(), this.constructor.name);
}
}
class AAction extends B{
public getName(){
return 'FOO';
}
}
class CAction extends B{
public getName(){
return 'Bar';
}
}
var a = new AAction();
var b = new BAction();
a.doAction(); //it prints correctly "FOO", 'AAction'
b.doAction(); //it prints wrongly "FOO", 'AAction', the correct is "Bar", "BAction"
it only occurs in store folder. It not occurs in others folder..
The text was updated successfully, but these errors were encountered:
This is a...
What toolchain are you using for transpilation/bundling?
ngc
Environment
NodeJS Version:6.10.3
Typescript Version:2.3.4
Angular Version:2.4.10
@angular-redux/store version:
@angular/cli version: 1.5.0
OS:windows
Expected Behaviour:
When class A and class C extends B, we expect output in console.log(this.constructor.name) in B class it's always 'A' (if we call a.method()) and 'C' if we call c.method.
Actual Behaviour:
if i call c.method(), it prints "A" (if a and c extends b).
Stack Trace/Error Message:
not necessary
Code
it only occurs in store folder. It not occurs in others folder..
The text was updated successfully, but these errors were encountered: