Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / gtest-429.cs
blobd4327e0ebb813255f881884e7e697c9369e22d2b
1 using System;
3 public struct CInt
5 int data;
7 public CInt (int data)
9 this.data = data;
12 public static implicit operator CInt (int xx)
14 return new CInt (xx);
17 public static implicit operator int (CInt xx)
19 return xx.data;
24 public class Klass
26 public CInt? Value;
27 public Klass (CInt? t)
29 this.Value = t;
33 public class MainClass
35 public static int Main ()
37 var v = new Klass (3);
38 return v.Value.Value - 3;