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

gtest-373.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 75952ad7e6d6fd44ceabb6ca8243b13c3ba1038d (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
25
26
27
28
29
using System;

namespace MonoBug
{
	class MainClass
	{
		public static void Main ()
		{
			GenericType<bool> g = new GenericType<bool> (true);
			if (g)
				Console.WriteLine ("true");
		}
	}

	public class GenericType<T>
	{
		private T value;

		public GenericType (T value)
		{
			this.value = value;
		}

		public static implicit operator T (GenericType<T> o)
		{
			return o.value;
		}
	}
}