Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Apr 26, 2012 3:59:39 AM |
Updated | Apr 26, 2012 3:59:39 AM |
Priority | Normal |
Type | Feature |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using System; using System.Diagnostics.Tracing; using System.Reflection; class A { static void Foo(EventAttributes[] x) { var y = (EventAttribute[]) x.Clone(); // InvalidCastException } static void Foo(Action<EventAttributes> x) { var y = (Action<EventAttribute>) x.Clone(); // InvalidCastException } }