summaryrefslogtreecommitdiff
path: root/mcs/tests/gtest-exmethod-27.cs
blob: 6351c628653a31ed95e950336064f956ac395c0a (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
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;

namespace Foo
{

	static partial class Extensions
	{
	}

	static partial class Extensions
	{

		public static string AsString (this IList<byte> bytes)
		{
			return "42";
		}
	}
}

namespace Bar
{

	using Foo;

	class Program
	{

		public static void Main ()
		{
			Console.WriteLine (Pan (new byte[0]));
		}

		internal static string Pan (byte[] bytes)
		{
			return bytes.AsString ();
		}
	}
}