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:
authorMartin Baulig <martin@novell.com>2007-03-21 01:11:00 +0300
committerMartin Baulig <martin@novell.com>2007-03-21 01:11:00 +0300
commit28daa225416c618f4c241a557e24b7fec3872cf0 (patch)
treea4a5ee4d796ac6fbfdd30f4afb08e7d902540579 /mcs/tests/gtest-320.cs
parente5c508bce9dbad9cddf4806a98df5af2b3371fa6 (diff)
2007-03-20 Martin Baulig <martin@ximian.com>
Fix #77963, #80314 and #81019. Added gtest-317, ..., gtest-320. * class.cs (TypeContainer.CreateType): New public method. This is now called before DefineType() to create the TypeBuilders. (TypeContainer.DefineType): Don't create the TypeBuilder here; it has already been created by CreateType(). (TypeContainer.DefineTypeBuilder): Renamed into CreateTypeBuilder(); don't resolve our base classes here; this has been moved into DefineBaseTypes(). We're now called from CreateType(). (TypeContainer.DefineBaseTypes): New private method; resolve our base classes here. We're now called from DefineType(). * rootcontext.cs (RootContext.ResolveTree): Call TypeContainer.CreateType() on all our types first to create all the TypeBuilders. After that, call TypeContainer.DefineType() on all the types which'll resolve their base classes and setup the resolve order. svn path=/trunk/mcs/; revision=74709
Diffstat (limited to 'mcs/tests/gtest-320.cs')
-rw-r--r--mcs/tests/gtest-320.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/mcs/tests/gtest-320.cs b/mcs/tests/gtest-320.cs
new file mode 100644
index 00000000000..c003aa788ef
--- /dev/null
+++ b/mcs/tests/gtest-320.cs
@@ -0,0 +1,19 @@
+// Bug #81019
+public class Foo<K>
+{ }
+
+partial class B
+{ }
+
+partial class B : Foo<B.C>
+{
+ public class C
+ { }
+
+}
+
+class X
+{
+ static void Main ()
+ { }
+}