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-09-13 00:22:53 +0400
committerMarek Safar <marek.safar@gmail.com>2004-09-13 00:22:53 +0400
commit37de8e5a266e131200df6913e85f52fb30366c8d (patch)
tree4277416de4e1e363b883ab32c5d9b85dd6428977 /mcs/tests/test-287.cs
parentb825b31174b10de9091fb8146f12e4768dbcb532 (diff)
Improved test
svn path=/trunk/mcs/; revision=33783
Diffstat (limited to 'mcs/tests/test-287.cs')
-rw-r--r--mcs/tests/test-287.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/mcs/tests/test-287.cs b/mcs/tests/test-287.cs
index aad225f17f8..9163e091638 100644
--- a/mcs/tests/test-287.cs
+++ b/mcs/tests/test-287.cs
@@ -1,5 +1,3 @@
-// TODO: add test of no constructor presence in the class when mono will support it
-
using System;
using System.Reflection;
@@ -21,6 +19,11 @@ public class MainClass
return 1;
}
+ if (type.GetConstructors ().Length > 0) {
+ Console.WriteLine ("Has constructor");
+ return 2;
+ }
+
Console.WriteLine (StaticClass.Name ());
return 0;
}