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
Expected behavior:
No compilation error should occur.
Actual behavior: index.ts(11,12): error TS2715: Abstract property 'name' in class 'Animal' cannot be accessed in the constructor.
This regression was introduced in #19005, as accessing an abstract property in any constructor causes this error, rather than the indented goal of disallowing abstract property accesses only in the constructors of abstract classes that are/extend the abstract class that the abstract property belongs to.
The text was updated successfully, but these errors were encountered:
TypeScript Version: starting from 2.6.0-dev.20171010, 2.6.0-dev.20171015
Code
Expected behavior:
No compilation error should occur.
Actual behavior:
index.ts(11,12): error TS2715: Abstract property 'name' in class 'Animal' cannot be accessed in the constructor.
This regression was introduced in #19005, as accessing an abstract property in any constructor causes this error, rather than the indented goal of disallowing abstract property accesses only in the constructors of abstract classes that are/extend the abstract class that the abstract property belongs to.
The text was updated successfully, but these errors were encountered: