Vannevelj / VSDiagnostics

A collection of static analyzers based on Roslyn that integrate with VS
GNU General Public License v2.0
65 stars 16 forks source link

TypeToVar with dynamic variable #600

Closed Vannevelj closed 8 years ago

Vannevelj commented 8 years ago

Test TypeToVar with this:

dynamic exceptionInfo = new ExpandoObject();
Hosch250 commented 8 years ago

dynamic e = new ExpandoObject(); does not trigger this exception, nor do any other dynamic variable. ExpandoObject e = new ExpandoObject(); triggers this and results in var e = new ExpandoObject();.

Vannevelj commented 8 years ago

Do we have tests for this?

Hosch250 commented 8 years ago

No, we do not. I can add them later.

Vannevelj commented 8 years ago

That'd be great, cheers