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:
authorRaja R Harinath <harinath@hurrynot.org>2005-02-15 16:50:09 +0300
committerRaja R Harinath <harinath@hurrynot.org>2005-02-15 16:50:09 +0300
commit1bd72bb06e953bc3533f3d32018969b813c4189d (patch)
treecfef8b4b25fd86ec930b7e7f1220eb37ff90c854 /mcs/tests/test-347.cs
parent0dd324013701c332a9ef7a16456b5c1de11bca4f (diff)
In mcs:
Fix #71992. * namespace.cs (NamespaceEntry.LookupNamespaceOrType): Add 'ignore_cs0104' parameter. Pass it to ... (NamespaceEntry.Lookup): ... this. * decl.cs (DeclSpace.LookupType): Add 'ignore_cs0104' parameter. * ecore.cs (SimpleName.ResolveAsTypeStep): Update. (TypeLookupExpression.DoResolveAsTypeStep): Update. * expression.cs (MemberAccess.IdenticalNameAndTypeName): Update. Request that cs0104 errors be ignored. (ComposedCast.ResolveAsTypeStep): Update. In tests: * test-347.cs: New test from #71992. svn path=/trunk/mcs/; revision=40699
Diffstat (limited to 'mcs/tests/test-347.cs')
-rw-r--r--mcs/tests/test-347.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/test-347.cs b/mcs/tests/test-347.cs
new file mode 100644
index 00000000000..178ac20af95
--- /dev/null
+++ b/mcs/tests/test-347.cs
@@ -0,0 +1,32 @@
+namespace Whatever.Core {
+ public class Project {
+ }
+
+ public class A {
+ public Project Project {
+ get { return new Project(); }
+ }
+ }
+}
+
+namespace SomethingElse.Core {
+ public class Project {
+ }
+}
+
+namespace Whatever.App {
+ using Whatever.Core;
+ using SomethingElse.Core;
+
+ public class B : A {
+ public string Execute() {
+ return Project.ToString();
+ }
+
+ public static void Main ()
+ {
+ new B().Execute ();
+ }
+ }
+}
+