summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1922-2.cs
blob: 27fa38721fd67578a7f2fc9f7baab58e1a878534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS1922: A field or property `System.Type' cannot be initialized with a collection object initializer because type `System.Type' does not implement `System.Collections.IEnumerable' interface
// Line: 13

using System;
using System.Xml.Serialization;

namespace test
{
	public class Test
	{
		static void Main ()
		{
			XmlSerializer xs = new XmlSerializer (typeof (string), new Type () { typeof (bool) });
		}
	}
}