summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-exmethod-10.cs
blob: be075dd34297c320a17841969e637c063bf23d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


using System;

static class AExtensions
{
	public static int Round (this double d)
	{
		return (int) Math.Round (d);
	}
}

static class BExtensions
{
	public static T GetBy<T> (this T [] a, double p)
	{
		return a [p.Round ()];
	}
}

public class C
{
	public static void Main ()
	{
	}
}