Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-exmethod-38.cs
1 using System;
2
3 namespace Repro2
4 {
5         struct Color
6         {
7                 public static Color Black = new Color (0);
8                 public static Color White = new Color (255);
9                 public static Color Transparent = new Color (-1);
10
11                 public int ID;
12
13                 public Color (int id)
14                 {
15                         this.ID = id;
16                 }
17         }
18
19         static class ExtensionMethods
20         {
21                 public static Color Transparent (this Color c)
22                 {
23                         return Color.White;
24                 }
25         }
26
27         class MainClass
28         {
29                 public static int Main ()
30                 {
31                         var c = Color.Black.Transparent ();
32                         return 0;
33                 }
34         }
35 }