(With F#4)
If I compile an assembly with the following code:
namespace badlib
open System
open System.Windows.Input
type Interface2<'T> =
inherit ICommand
type Class<'T>() =
interface Interface2<'T> with
[<CLIEvent>]
member __.CanExecuteChanged : IEvent<EventHandler,EventArgs> = Event<EventHandler,EventArgs>().Publish
member __.Execute(parameter : obj): unit = ()
member __.CanExecute(parameter : obj): bool = false
Then referencing the assembly from another assembly produces the following build error:
FSC: warning FS3186: An error occurred while reading the F# metadata node at position 4 in table 'itypars' of assembly 'badlib, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. The node had no matching declaration. Please report this warning. You may need to recompile the F# assembly you are using.