Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-05-17 13:53:20 +0400
committerMarek Safar <marek.safar@gmail.com>2010-05-17 13:53:20 +0400
commitf06ff7c5b3866b428ac78cb34d026e087e877ebf (patch)
tree98cd947bfdccbc1961688524ef42c61b0da756b0 /mcs/tests/test-766.cs
parent33f4608d23a3e5831aa180192916d73bb5174d45 (diff)
New tests.
svn path=/trunk/mcs/; revision=157425
Diffstat (limited to 'mcs/tests/test-766.cs')
-rw-r--r--mcs/tests/test-766.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/mcs/tests/test-766.cs b/mcs/tests/test-766.cs
new file mode 100644
index 00000000000..7adfa390f1b
--- /dev/null
+++ b/mcs/tests/test-766.cs
@@ -0,0 +1,35 @@
+namespace A
+{
+ using Base = B.Color;
+
+ class Color
+ {
+ protected Base Base
+ {
+ get { return Base.Blue; }
+ }
+
+ protected Base NewBase {
+ get {
+ return Base.From(1);
+ }
+ }
+
+ public static void Main ()
+ {
+ }
+ }
+}
+
+namespace B
+{
+ public struct Color
+ {
+ public static Color Blue = new Color ();
+
+ public static Color From (int i)
+ {
+ return new Color ();
+ }
+ }
+} \ No newline at end of file