Cannot use operators defined in internal types. #16762
Labels
Area-Compiler-Checking
Type checking, attributes and all aspects of logic checking
Bug
Impact-Low
(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
I discovered that the compiler will not let me use an operator in an internal type, even from an internal function. I'm not sure if it's intentional, so opening it here as a bug.
Repro steps
Expected behavior
The snippet compiles successfully.
Actual behavior
Known workarounds
If I make the module public the snippet will compile successfully. I can do it in my use case (an F# library distributed in source form) and explicitly document that the types may become internal at any time.
Related information
Provide any related information (optional):
The text was updated successfully, but these errors were encountered: