Join 40 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
public class Base
protected string Field;
type Inherited() =
member x.Hey =
let f () = x.Field
This looks like intended behaviour, however the wording is misleading. In similar cases there's additional text about possible scope leaving.
I'm able to reproduce. Looks like possible bug to me; I think you should be allowed to do this.
I can't say it's a bug now until we find out if this is desired behavior, so I'm marking as "Need More Info".
A workaround is to add public member that accesses the protected one. The need to use such a workaround seems odd for me.
@auduchinok can you maybe access it via base?