Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / gtest-exmethod-10.cs
1
2
3 using System;
4
5 static class AExtensions
6 {
7         public static int Round (this double d)
8         {
9                 return (int) Math.Round (d);
10         }
11 }
12
13 static class BExtensions
14 {
15         public static T GetBy<T> (this T [] a, double p)
16         {
17                 return a [p.Round ()];
18         }
19 }
20
21 public class C
22 {
23         public static void Main ()
24         {
25         }
26 }