-
Notifications
You must be signed in to change notification settings - Fork 752
F# records are not accesssible if generic and inside a module #574
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
Comments
Can you show your F# version and the code for |
Or using |
Your clr.MyNamespace.MyRecord is generic with one argument, that's why CLR shows `1 |
@stevehv also what happens when you try accessing your F# record without |
Owing to some sleep deprivation the problematic F# code was not what I originally thought it was. Accessing without getattr(MyNamespace.MyModule, 'MyRecordD`1')[System.String] # TypeError: no type matches params |
Can you show output of MyNamespace.MyModule.MyRecordD.Overloads? |
System.Reflection |
@stevehv any idea how this F# code looks like in C#? i'm not sure if this is only IL feature or available in C# too? |
This should be added to #1374 |
Uh oh!
There was an error while loading. Please reload this page.
Environment
Details
F# records are not accessible in pythonnet if generic AND inside a module.
Sample F# code, all types but MyRecordD are accessible from Pythonnet:
Python code, ony the last line causes an error:
I noticed that
dir(MyNamespace)
contains'MyRecordA', 'MyRecordB', 'MyRecordB`1'
whiledir(MyNamespace.MyModule)
only contains'MyRecordC', 'MyRecordD`1'
but no'MyRecordD'
.The text was updated successfully, but these errors were encountered: