Merge pull request #4935 from lambdageek/dev-handles-may
[mono.git] / mcs / tests / gtest-373.cs
1 using System;
2
3 namespace MonoBug
4 {
5         class MainClass
6         {
7                 public static void Main ()
8                 {
9                         GenericType<bool> g = new GenericType<bool> (true);
10                         if (g)
11                                 Console.WriteLine ("true");
12                 }
13         }
14
15         public class GenericType<T>
16         {
17                 private T value;
18
19                 public GenericType (T value)
20                 {
21                         this.value = value;
22                 }
23
24                 public static implicit operator T (GenericType<T> o)
25                 {
26                         return o.value;
27                 }
28         }
29 }