Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / gtest-543.cs
blob75ae4e04a93c7c6381973992d88906a94f524c6c
1 using System.Collections.Generic;
3 public class Blah<T>
5 public class WrapperWrapper<N>
7 public readonly Wrapper<N> Wrapper;
9 public WrapperWrapper ()
10 : this (Wrapper<N>.Empty)
14 protected WrapperWrapper (Wrapper<N> val)
16 Wrapper = val;
19 public WrapperWrapper<N> NewWrapperWrapper (Wrapper<N> val)
21 return new WrapperWrapper<N> (val);
26 public class Wrapper<U>
28 public static Wrapper<U> Empty = new Wrapper<U> (default (U));
30 private Wrapper (U u)
35 public class C
37 public static int Main ()
39 var r = new Blah<ulong>.WrapperWrapper<byte>().NewWrapperWrapper (Wrapper<byte>.Empty);
40 if (r == null)
41 return 1;
43 return 0;