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
{{ message }}
Repository navigation
initialized property that references this triggers "referenced directly or indirectly in its own initializer." when referenced outside the constructor #16892
changed the title [-]initialized property that references `this` triggers "referenced directly or indirectly in its own initializer." when outside the constructor[/-][+]initialized property that references `this` triggers "referenced directly or indirectly in its own initializer." when referenced outside the constructor[/+]on Jul 2, 2017
The type of the property depends on the type of the class, which includes the type of the property. the compiler breaks these circular dependencies by giving declarations the type any. the error message tells you that this occurred. adding an explicit type annotation to styles declaration should avoid the issue.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Activity
[-]initialized property that references `this` triggers "referenced directly or indirectly in its own initializer." when outside the constructor[/-][+]initialized property that references `this` triggers "referenced directly or indirectly in its own initializer." when referenced outside the constructor[/+]mhegazy commentedon Aug 24, 2017
The type of the property depends on the type of the class, which includes the type of the property. the compiler breaks these circular dependencies by giving declarations the type
any. the error message tells you that this occurred. adding an explicit type annotation tostylesdeclaration should avoid the issue.mhegazy commentedon Sep 8, 2017
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.