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-04-01 16:54:27 +0400
committerRaja R Harinath <harinath@hurrynot.org>2005-04-01 16:54:27 +0400
commit71dd19080b46d189ef401c2324ca9ae40771b6a3 (patch)
tree9f5147d9ff841565d37d72942059e95e52ba61e6 /mcs/tests/test-359.cs
parent0f62cbb5eb5447baa2a55dad248fe65377fc2eb3 (diff)
In mcs:
* cs-tokenizer.cs (consume_identifier): Treat 'partial' as a keyword in 'partial enum' too. * cs-parser.jay (enum_declaration): Add CS0267 check ('partial enum' is not allowed). Report from Kamil Skalski <nazgul@omega.pl>. Fix #74309. * rootcontext.cs (ResolveTree): The 'root.Interfaces' list can have partial containers too. In tests: * test-359.cs: New test from #74309. In errors: * cs0267.cs: New. Mentioned in passing in #74309. svn path=/trunk/mcs/; revision=42459
Diffstat (limited to 'mcs/tests/test-359.cs')
-rw-r--r--mcs/tests/test-359.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/mcs/tests/test-359.cs b/mcs/tests/test-359.cs
new file mode 100644
index 00000000000..6f20d5bda97
--- /dev/null
+++ b/mcs/tests/test-359.cs
@@ -0,0 +1,14 @@
+partial interface B {
+ void foo ();
+}
+
+partial interface B {
+ void faa ();
+}
+
+public class Test
+{
+ public static void Main ()
+ {
+ }
+}