Merge pull request #1861 from saper/home-override
[mono-project.git] / mcs / tests / test-806.cs
blob5bdec376e495ab21dab427c8c3aad4e48b6fa0d3
1 using System;
2 using System.Reflection;
4 class A1 : Attribute
6 public float F;
7 public float UL;
9 public A1 (float f)
11 this.F = f;
14 public A1 (ulong ul)
16 this.UL = ul;
20 [A1 (45234.567f)]
21 class T1
25 [A1 (uint.MaxValue + (ulong)1)]
26 class T2
30 class Test
32 public static int Main ()
34 var A1 = typeof (T1).GetCustomAttributes (false) [0] as A1;
35 if (A1.F != 45234.567f)
36 return 1;
38 A1 = typeof (T2).GetCustomAttributes (false) [0] as A1;
39 if (A1.UL != uint.MaxValue + (ulong)1)
40 return 2;
42 return 0;