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>2004-04-22 16:20:22 +0400
committerMarek Safar <marek.safar@gmail.com>2004-04-22 16:20:22 +0400
commite8afd9bacc02a34a472ed40046e5b69bcdf63699 (patch)
tree1da5a1f21171de18b980aed8badd60ee61cb0ecf /mcs/tests/test-242.cs
parented5ada30fe0e513043be33a9f568cb9d41e27278 (diff)
2004-04-22 Marek Safar <marek.safar@seznam.cz>
* Makefile: Add support for custom test compiler options. * test-242.cs: New test. svn path=/trunk/mcs/; revision=25827
Diffstat (limited to 'mcs/tests/test-242.cs')
-rw-r--r--mcs/tests/test-242.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/test-242.cs b/mcs/tests/test-242.cs
new file mode 100644
index 00000000000..989e6d99fce
--- /dev/null
+++ b/mcs/tests/test-242.cs
@@ -0,0 +1,16 @@
+// This code must be compilable without any warning
+// Compiler options: -warnaserror -warn:4
+
+class BaseClass {
+ public int Location = 3;
+}
+
+class Derived : BaseClass {
+ public new int Location {
+ get {
+ return 9;
+ }
+ }
+
+ public static void Main () { }
+} \ No newline at end of file