소스 검색

2002-03-07 Ravi Pratap <[email protected]>

	* test-82.cs : Add.

svn path=/trunk/mcs/; revision=2982
Ravi Pratap M 24 년 전
부모
커밋
e95a7b5e5e
3개의 변경된 파일45개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 0
      mcs/tests/ChangeLog
  2. 1 1
      mcs/tests/makefile
  3. 40 0
      mcs/tests/test-82.cs

+ 4 - 0
mcs/tests/ChangeLog

@@ -1,3 +1,7 @@
+2002-03-07  Ravi Pratap  <[email protected]>
+
+	* test-82.cs : Add.
+
 2002-03-07  Miguel de Icaza  <[email protected]>
 
 	* test-52.cs: Expanded test to cover more cases of foreach.

+ 1 - 1
mcs/tests/makefile

@@ -12,7 +12,7 @@ TEST_SOURCES = \
 	test-51 test-52	test-53 test-54 test-55 test-56 test-57		test-59 	\
 	test-61	test-62 test-63	test-64 test-65 test-66 test-67 test-68 test-69 test-70	\
 	test-71 test-72 test-73 test-74 test-75		test-77 test-78 test-79 test-80 \
-	test-81
+	test-81 test-82
 
 UNSAFE_SOURCES = \
 	unsafe-1 unsafe-2

+ 40 - 0
mcs/tests/test-82.cs

@@ -0,0 +1,40 @@
+//
+// Test to ensure that we correctly perform type lookups - thanks to Felix A.I
+//
+namespace N1
+{	
+	public enum A
+	{
+		A_1, A_2, A_3
+	}
+
+	namespace N2
+	{	
+		public class B
+		{
+			A member;
+
+			void Method (ref A a)
+			{
+			}
+
+			public static int Main ()
+			{
+				return 0;
+			}
+		}
+
+	}
+}
+
+namespace N1.N3
+{	
+	public class B
+	{
+		A member;
+
+		void Method (ref A a)
+		{
+		}
+	}
+}