[Mono-bugs] [Bug 345467] [Regression] Calling a generic method from inside an anonymous method passed to a method causes exceptions
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Dec 3 00:29:02 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=345467#c2
--- Comment #2 from Aaron Bockover <abockover at novell.com> 2007-12-02 22:29:01 MST ---
Created an attachment (id=185574)
--> (https://bugzilla.novell.com/attachment.cgi?id=185574)
Test case 2
This test case removes the nullable argument to Query<T>, and produces a
different exception. Again however, if MakeSomething<T> () is replaced with
null, it compiles.
The compiler produces the following exception:
Unhandled Exception: Mono.CSharp.InternalErrorException: bug1.cs(6,7):
BaseObject ---> System.InvalidOperationException: Method 'BaseObject.Query'
does not have a method body.
at System.Reflection.Emit.MethodBuilder.fixup () [0x00000]
at System.Reflection.Emit.TypeBuilder.CreateType () [0x00000]
at Mono.CSharp.TypeContainer.CloseType () [0x00000] --- End of inner
exception stack trace ---
at Mono.CSharp.TypeContainer.CloseType () [0x00000]
at Mono.CSharp.RootContext.CloseTypes () [0x00000]
at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list