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:
-----------------------------------------------

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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?
By on 9/8/2008 6:18 AM ()

I'm using CTP 1.9.6.0 and it compiles, but I get the same output as you.

By on 9/8/2008 6:19 AM ()

Thanks for trying that out, yashez. I'm filing a bug report right now. My initial attempt to file one failed which is why I posted here but after a second check I see that I mis-typed the address...sigh...

By on 9/8/2008 6:26 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper