linux-packaging-mono/mcs/tests/gtest-exmethod-27.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

40 lines
445 B
C#

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 ();
}
}
}