[Mono-bugs] [Bug 639407] csharp still doesn't properly support "dynamic"
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Sep 17 14:02:01 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=639407
https://bugzilla.novell.com/show_bug.cgi?id=639407#c2
Andrew Jorgensen <ajorgensen at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
Target Milestone|--- |2.8.x
--- Comment #2 from Andrew Jorgensen <ajorgensen at novell.com> 2010-09-17 18:02:00 UTC ---
With your fix merged to mono-2-8 (this is a 2.8 bug, we are not tracking if
this is fixed in master) the above steps produce the following new error:
> csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> dynamic y = 5;
csharp> Console.WriteLine(y);
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot convert type
`void' to `object'
at (wrapper dynamic-method) object.CallSite.Target
(System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Type,object)
<0x00108>
at System.Dynamic.UpdateDelegates.UpdateAndExecute2<System.Type, object,
object> (System.Runtime.CompilerServices.CallSite,System.Type,object) <0x00382>
at Class1.Host (object&) <0x000da>
at Mono.CSharp.Evaluator.Evaluate (string,object&,bool&) <0x00083>
at Mono.CSharpShell.Evaluate (string) <0x00032>
csharp>
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the mono-bugs
mailing list