-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
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? Sign in to your account
GetUnionCases fails on an option of provided type #336
Labels
Comments
I believe this is because It's possible to get around it via some fakery if you really need to: https://github.com/jet/falanx/blob/fe3bfbce4a9ec40aecfd7db6704aaab91283c3a5/src/Falanx.Machinery/ProvidedTypesExtensions.fs#L16-L70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following snippet causes an error message box to appear in the VS instance that consumes the type provider.
Expected behavior
Expecting the function call so succeed and return 2 cases.
Actual behavior
A design time error message with
The operation 'GetNestedType' on item 'FSharpOption``1' should not be called on provided type, member or parameter of type 'ProviderImplementation.ProvidedTypes.TypeSymbol'
and a stack trace.Is there any workaround for this?
The text was updated successfully, but these errors were encountered: