Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

.NET 7 RC 2 breaks F# to C# interop #64992

Closed
gdar91 opened this issue Oct 12, 2022 · 3 comments
Closed

.NET 7 RC 2 breaks F# to C# interop #64992

gdar91 opened this issue Oct 12, 2022 · 3 comments
Labels
untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@gdar91
Copy link

gdar91 commented Oct 12, 2022

Description

F# to C# interop breaks after upgrading to RC 2. When you have more than one type in the f# library, you can't access the properties (members of a record and cases of an union) of the first type.

For example, this below will fail:

F# Library: Library.fs:

type A = A

type B = B

C# Console: Program.cs

var a = A.A;

Console.WriteLine($"{a}");

Configuration

.NET 7 RC2. Behaves the same on mac and windows.

Regression?

It worked well in RC1.

Other information

https://github.com/gdar91/Rc2FsCs

@GrabYourPitchforks GrabYourPitchforks transferred this issue from dotnet/core Oct 26, 2022
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Oct 26, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@cston
Copy link
Member

cston commented Oct 26, 2022

This sounds like the same issue as reported in dotnet/core#7865 (comment) and linked to dotnet/fsharp#14147.

@cston
Copy link
Member

cston commented Oct 26, 2022

cc @KevinRansom

@gdar91 gdar91 closed this as completed Oct 26, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

2 participants