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

36 lines
498 B
C#

using System;
namespace Repro2
{
struct Color
{
public static Color Black = new Color (0);
public static Color White = new Color (255);
public static Color Transparent = new Color (-1);
public int ID;
public Color (int id)
{
this.ID = id;
}
}
static class ExtensionMethods
{
public static Color Transparent (this Color c)
{
return Color.White;
}
}
class MainClass
{
public static int Main ()
{
var c = Color.Black.Transparent ();
return 0;
}
}
}