Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gtest-etree-22.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: eeedbd47107ee9d8bce70e5f5d5f5775ec213761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Linq.Expressions;

namespace FieldInfoBug
{
	public class MonoRuntime
	{
		public static int Main ()
		{
			// This constructor throws ArgumentException: 
			// The field handle and the type handle are incompatible.
			new GenericClass<object> ("value");
			return 0;
		}
	}

	public class GenericClass<T>
	{
		public GenericClass (string argument)
		{
			Expression<Func<string>> expression = () => argument;
		}
	}
}