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
Provide the steps required to reproduce the problem:
#nowarn"3535"#nowarn"3536"typeIPrintable=static abstractmemberLog:string->stringtypeSomeClass1()=memberthis.GetLog(s:string)= IPrintable.Log(s)static memberLog(s:string)= s
interface IPrintable withstatic memberLog(s:string)= s
letsomeClass= SomeClass1()letx= SomeClass1.Log("hello")lety= someClass.GetLog("hello")letz= IPrintable.Log("hello")
Expected behavior
Should not compile and have error reporting preventing this
Provide a description of the expected behavior.
Actual behavior
Compiles and produces:
System.BadImageFormatException: Bad IL format.
at <StartupCode$FSI_0004>.$FSI_0004.main@()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Stopped due to error
Provide a description of the actual behaviour observed.
Known workarounds
N/A
Provide a description of any known workarounds.
N/A
The text was updated successfully, but these errors were encountered:
Repro steps
Provide the steps required to reproduce the problem:
Expected behavior
Should not compile and have error reporting preventing this
Provide a description of the expected behavior.
Actual behavior
Compiles and produces:
Provide a description of the actual behaviour observed.
Known workarounds
N/A
Provide a description of any known workarounds.
N/A
The text was updated successfully, but these errors were encountered: