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
Recursive use of inline member should produce better diagnostic #17991
Area-Diagnosticsmistakes and possible improvements to diagnosticsBugFeature RequestImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.
typeID3(vl: _)=member_.Value= vl
member inlinethis.FastEquals(other:ID3)=
this.FastEquals(other)
Is currently producing the following diagnostics:
error FS1114: The value '_.ID3.FastEquals' was marked inline but was not bound in the optimization environment
error FS1113: The value 'FastEquals' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessibleerror FS1114:The value '_.ID3.FastEquals' was marked inline but was not bound in the optimization environmenterror FS1113:The value 'FastEquals' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessibleerror FS1114:The value '_.ID3.FastEquals' was marked inline but was not bound in the optimization environmenterror FS1113:The value 'FastEquals' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessibleerror FS1114:The value '_.ID3.FastEquals' was marked inline but was not bound in the optimization environmenterror FS1113:The value 'FastEquals' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessible
which are quite misleading.
I propose we improve diagnostic with something like "Functions and members cannot be both inline and recursive".
Area-Diagnosticsmistakes and possible improvements to diagnosticsBugFeature RequestImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.
Activity
edgarfgp commentedon Nov 11, 2024
Reminds me of #17899.
Update tests and regen localization for FS3888 recursive-inline diagn…