I should have clarified that I get the above when loading the code as a script in fsi.
If I try to compile that same code I get:
-----------------------------------------------
The local method 'Temp.EventSource'::'get_Event' was referenced but not declared
generic arity: 0
Error in mref_as_MethodDef_idx for mref = "get_Event", error: Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter+Mdef_not_foundException: Exception of type 'Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter+Mdef_not_foundException' was thrown.
at Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter.mdkey_as_MethodDef_idx(cenv cenv, mdkey mdkey)
at Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter.mref_as_MethodDef_idx(cenv cenv, MethodRef mref)
typ_as_MemberRef_parent: mspec should have been encoded as mdtMethodDef?
The local method 'Temp.EventSource'::'get_Event' was referenced but not declared
generic arity: 0
Error in mref_as_MethodDef_idx for mref = "get_Event", error: Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter+Mdef_not_foundException: Exception of type 'Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter+Mdef_not_foundException' was thrown.
at Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter.mdkey_as_MethodDef_idx(cenv cenv, mdkey mdkey)
at Microsoft.FSharp.Compiler.AbstractIL.BinaryWriter.mref_as_MethodDef_idx(cenv cenv, MethodRef mref)
typ_as_MemberRef_parent: mspec should have been encoded as mdtMethodDef?