-
Notifications
You must be signed in to change notification settings - Fork 854
Open
Labels
Area-Compiler-ImportAndInteropimport of .NET DLLs and interopimport of .NET DLLs and interopBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Milestone
Description
A simplified repro of what has actually failed at runtime with no errors reported by F# compiler:
namespace CSharpLib
{
public abstract class AbstractClass
{
public abstract override string ToString();
}
}
open CSharpLib
type T() =
inherit AbstractClass()
[<EntryPoint>]
let hello _ =
let t = T()
printfn "Hello %O" t
0No errors reported by FCS:
After successful build this code fails at runtime:
"C:\Program Files\dotnet\dotnet.exe"
C:/Users/Eugene.Auduchinok/RiderProjects/NewAbstractDefaultMember/NewAbstractDefaultMember/bin/Debug/netcoreapp2.0/NewAbstractDefaultMember.dll
Unhandled Exception: System.TypeLoadException: Method 'ToString' in type 'T' from assembly 'NewAbstractDefaultMember, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at NewAbstractDefaultMember.hello(String[] name)
Process finished with exit code -532,462,766.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-Compiler-ImportAndInteropimport of .NET DLLs and interopimport of .NET DLLs and interopBugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.(Internal MS Team use only) Describes an issue with limited impact on existing code.
Type
Projects
Status
New
