Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-130487: False error 'Cannot initialize type dynamic'

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Nov 6, 2009 6:30:08 PM
Updated Apr 14, 2012 3:59:56 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
using System;
using System.Collections;

class A
{
	public dynamic X = new C();
	static void Main()
	{
		new A { X = { 1 } };
	}
	
}
class C : IEnumerable
{

	public void Add(int x){Console.WriteLine(x);}
	
	public IEnumerator GetEnumerator()
	{
		throw new NotImplementedException();
	}
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles