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
And even when using '_' for the member-scope self-identifier:
typeTestClass()as self =member inline_.test()=5
Expected behavior
Successful build
Actual behavior
The build fails with the following error: "Error FS1113 : The value 'test' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessible"
Known workarounds
Either make the inline function external and receive the instance as an argument or rework every 'let' that needs the class-scope self-identifier to be a member that uses a function-scoped self-identifier instead.
Related information
I needed an inline function for a member constraint in my real use case. It worked perfectly until I added the self-identifier for use in some other function.
Repro steps
The following code can easily reproduce the error:
It also happens when the self-identifier is the same:
And even when using '_' for the member-scope self-identifier:
Expected behavior
Successful build
Actual behavior
The build fails with the following error: "Error FS1113 : The value 'test' was marked inline but its implementation makes use of an internal or private function which is not sufficiently accessible"
Known workarounds
Either make the inline function external and receive the instance as an argument or rework every 'let' that needs the class-scope self-identifier to be a member that uses a function-scoped self-identifier instead.
Related information
I needed an inline function for a member constraint in my real use case. It worked perfectly until I added the self-identifier for use in some other function.
Windows 10
.NET 8.0
Rider
The text was updated successfully, but these errors were encountered: