Consider these C# and F# projects:
namespace CSharpLib;
public interface I
{
public int P { get; }
}
public static class Ext
{
public static void M(this I i)
{
}
}
open CSharpLib
module M =
type Ext = CSharpLib.Ext
let f (i: I) =
i.M()
This fails to build when using .NET 8 SDK:
2>Program.fs(7,9): Error FS0073 : internal error: ImportILTypeRef: unexpected local scope
This is a recent regression, the same project builds fine when using .NET 7 SDK.
In addition to the failing build, it also breaks member code completion for extended type instances in a recent FCS:
