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
The following snippet causes an error message box to appear in the VS instance that consumes the type provider.
lettyp= ProvidedTypeDefinition ("Blah", Some typeof<obj>)letoptionTyp= ProvidedTypeBuilder.MakeGenericType (typedefof<_ option>,[ typ ])letcases= FSharp.Reflection.FSharpType.GetUnionCases optionTyp
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:
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: