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:
Diffstat (limited to 'mcs/tests/test-119.cs')
-rw-r--r--mcs/tests/test-119.cs50
1 files changed, 0 insertions, 50 deletions
diff --git a/mcs/tests/test-119.cs b/mcs/tests/test-119.cs
deleted file mode 100644
index be7d7695a22..00000000000
--- a/mcs/tests/test-119.cs
+++ /dev/null
@@ -1,50 +0,0 @@
-class Value {
- public static explicit operator int (Value val)
- {
- return 1;
- }
-
- public static explicit operator MyObject (Value val)
- {
- return new MyObject (1);
- }
-
- public static explicit operator uint (Value val)
- {
- return 1;
- }
-}
-
-class MyObject {
- public MyObject (int i) {}
-}
-
-class Derived : MyObject {
- public Derived (int i) : base (i) { }
-
- Derived Blah ()
- {
- Value val = new Value ();
-
- return (Derived) val;
- }
-}
-
-class Test {
- static int Main ()
- {
- Value v = new Value ();
-
- v = null;
-
- try {
- // This will throw an exception.
- // This test is more of a compile test, we need a real
- // good test that does not require this lame catch.
- Derived d = (Derived) v;
- } catch {
- }
-
- return 0;
- }
-}