diff options
author | Marek Safar <marek.safar@gmail.com> | 2008-11-04 21:43:40 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2008-11-04 21:43:40 +0300 |
commit | ec87272a1c8bc8e6081236d808ec63cbdac4a0e3 (patch) | |
tree | a06aec582b30f0ee6e158a8009fb7fede3f8e8ac /mcs/tests/gtest-422.cs | |
parent | 74a2ec9df800b68730d2f822dd74dbe782a84c4e (diff) |
New test.
svn path=/trunk/mcs/; revision=117912
Diffstat (limited to 'mcs/tests/gtest-422.cs')
-rw-r--r-- | mcs/tests/gtest-422.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mcs/tests/gtest-422.cs b/mcs/tests/gtest-422.cs new file mode 100644 index 00000000000..0fdcfd13053 --- /dev/null +++ b/mcs/tests/gtest-422.cs @@ -0,0 +1,31 @@ +class A +{ + public static bool operator > (A a, object b) + { + return false; + } + + public static bool operator < (A a, object b) + { + return true; + } +} + +class C +{ + public static int Main () + { + return new C ().Test () ? 1 : 0; + } + + int? Id { + get { return 1; } + } + + bool Test () + { + A a = new A (); + bool b = a > Id && a < Id; + return b; + } +} |